当前位置:嗨网首页>书籍在线阅读

09-按照层次看帮助

  
选择背景色: 黄橙 洋红 淡粉 水蓝 草绿 白色 选择字体: 宋体 黑体 微软雅黑 楷体 选择字体大小: 恢复默认

如果不知道帮助能够提供些什么,那么就可以用“?contents”命令来显示所有可供查询的分类,如下例所示:

mysql> ? contents

You asked for help about help category: "Contents"

For more information, type 'help ', where is one of the following

categories:

Account Management

Administration

Data Definition

Data Manipulation

Data Types

Functions

Functions and Modifiers for Use with GROUP BY

Geographic Features

Language Structure

Plugins

Storage Engines

Stored Routines

Table Maintenance

Transactions

Triggers

对于列出的分类,可以使用“? 类别名称”的方式针对用户感兴趣的内容做进一步的查看。例如,想看看MySQL中都支持哪些数据类型,可以执行“? data types”命令:

mysql> ? data types

You asked for help about help category: "Data Types"

For more information, type 'help ', where is one of the following

topics:

AUTO_INCREMENT

BIGINT

BINARY

BIT

BLOB

BLOB DATA TYPE

BOOLEAN

上面列出了此版本支持的所有数据类型,如果想知道 int 类型的具体介绍,也可以利用上面的方法,做进一步的查看:

mysql> ? int

Name: 'INT'

Description:

INT[(M)] [UNSIGNED] [ZEROFILL]

A normal-size integer. The signed range is -2147483648 to 2147483647.

The unsigned range is 0 to 4294967295.

帮助文档中显示了int类型的详细描述。通过这种“? 类别名称”的方式,就可以一层层地往下查找用户所关心的主题内容。