13.8.3 HELP Statement语句

HELP 'search_string'

The HELP statement returns online information from the MySQL Reference Manual. HELP语句返回MySQL参考手册中的联机信息。Its proper operation requires that the help tables in the mysql database be initialized with help topic information (see Section 5.1.17, “Server-Side Help Support”).它的正确操作要求使用帮助主题信息初始化mysql数据库中的帮助表(请参阅第5.1.17节,“服务器端帮助支持”)。

The HELP statement searches the help tables for the given search string and displays the result of the search. HELP语句在帮助表中搜索给定的搜索字符串,并显示搜索结果。The search string is not case-sensitive.搜索字符串不区分大小写。

The search string can contain the wildcard characters % and _. These have the same meaning as for pattern-matching operations performed with the LIKE operator. For example, HELP 'rep%' returns a list of topics that begin with rep.

The HELP statement understands several types of search strings:HELP语句理解几种类型的搜索字符串:

In other words, the search string matches a category, many topics, or a single topic. 换句话说,搜索字符串匹配一个类别、多个主题或单个主题。You cannot necessarily tell in advance whether a given search string returns a list of items or the help information for a single help topic. 您不一定要提前知道给定的搜索字符串是返回项目列表还是返回单个帮助主题的帮助信息。However, you can tell what kind of response HELP returned by examining the number of rows and columns in the result set.但是,您可以通过检查结果集中的行数和列数来判断返回的响应HELP类型。

The following descriptions indicate the forms that the result set can take. 以下说明说明了结果集可以采用的形式。Output for the example statements is shown using the familiar tabular or vertical format that you see when using the mysql client, but note that mysql itself reformats HELP result sets in a different way.