mysql - 有可能获得所有MySQL系统函数的列表吗?

标签 mysql

我看起来像:

SHOW FUNCTION STATUS

获取当前服务器版本所有可用系统功能的列表。可以得到类似 here 的表格直接来自 MySQL 引擎?

谢谢!

最佳答案

如果您安装了帮助表(大多数二进制发行版都安装了;如果没有,则有一个名为 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 而不是 ;

关于mysql - 有可能获得所有MySQL系统函数的列表吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13516656/

相关文章:

mysql - 在最终呈现的 PHP 页面中将数据库表中的行空间解析为 HTML

php - 处理 php xml 帖子和批处理

mysql - 我陷入了简单的查询

mysql - 表中要保留多少列? - MySQL

java - 使用 JoinRowSet 时缺少两行

php - Codeigniter 为列中的每个不同值填充动态链接

python - 我的 SQLAlchemy MySQL 连接总是以休眠结束,这很奇怪吗?

mysql - IS NOT NULL 查询应该使用什么索引

php - 在 PHPmyADMIN 或 Navicat 中运行时,SQL 代码不会被执行

mysql - mysql配置jbpm6的方法