如果您安装了帮助表(大多数二进制发行版都安装了;有一个名为fill_help_tables.sql
如果没有),您可以输入:
mysql> HELP FUNCTIONS
You asked for help about help category: "Functions"
For more information, type 'help <item>', where <item> is one of the following
topics:
PROCEDURE ANALYSE
categories:
Bit Functions
Comparison operators
Control flow functions
Date and Time Functions
Encryption Functions
Information Functions
Logical operators
Miscellaneous Functions
Numeric Functions
String Functions
...然后是这样的:
mysql> HELP String Functions
You asked for help about help category: "String Functions"
For more information, type 'help <item>', where <item> is one of the following
topics:
ASCII
BIN
BINARY OPERATOR
BIT_LENGTH
CAST
CHAR FUNCTION
...
...最后做类似的事情之前:
mysql> HELP bin
Name: 'BIN'
Description:
Syntax:
BIN(N)
Returns a string representation of the binary value of N, where N is a
....
如何生成您自己的列表!
以下查询(在mysql
数据库)在一个列表中给出所有函数及其类别:
SELECT help_category.name, help_topic.name
FROM help_topic JOIN help_category
ON help_category.help_category_id = help_topic.help_category_id
WHERE help_category.help_category_id IN (
SELECT help_category_id FROM help_category
WHERE parent_category_id=37
) ORDER BY 1;
如果您想要每个的文本描述,只需添加description
作为一列SELECT
子句,虽然很长,所以你可能想使用\G
代替;