mysql數(shù)據(jù)庫(kù)在線幫助的使用

在不同的mysql版本中,很多特性和語(yǔ)法有可能是不一樣的,我們?cè)趺礃硬拍苤喇?dāng)前版本的語(yǔ)法是什么樣呢?最好的辦法是學(xué)會(huì)使用mysql的幫助。方法很簡(jiǎn)單:
1.1 按照層次看幫助
如果不知道幫助能夠提供些什么,可以一層一層往下看:
命令如下:
mysql>sss ? contentsnnn
you asked for helpabouthelpcategory:”contents”
for more information, type ‘help‘, where isone of thefollowing
categories:
accountmanagement
administration
data definition
data manipulation
data types
functions
functionsandmodifiersfor usewith groupby
geographicfeatures
languagestructure
plugins
storage engines
stored routines
table maintenance
transactions
triggers
對(duì)于列出的分類,可以進(jìn)行看自己感興趣的部分,例如:
mysqsssl> ? datatatattyppppes
you asked for helpabouthelpcategory: “datatypes”
for more information, type’help‘, where isone of thefollowing
topics:
auto_increment
bigint
binary
bit
blob
blobdata type
boolean
。。。。。。
對(duì)于列出的具體數(shù)據(jù)類型,可以進(jìn)一步看詳細(xì)情況:
mysql>sss ? int
name: ‘int’
description:
int[(m)] [unsigned][zerofill]
a normal-sizeinteger.the signedrangeis-2147483648 to 2147483647.
the unsignedrangeis0to 4294967295.
1.2 快速查閱幫助
實(shí)際當(dāng)中,如果我們需要快速查閱某項(xiàng)語(yǔ)法時(shí),可以使用關(guān)鍵字進(jìn)行快速查詢。例如,我想
知道show命令都能看些什么東西,可以用如下命令:
mysql>sss ? showwww
name: ‘show’
description:
showhas many forms thatprovideinformation aboutdatabases, tables,
columns,or statusinformation aboutthe server.thissectiondescribes
those following:
showauthors
showcharacterset[like ‘pattern’]
showcollation[like ‘pattern’]
show[full]columnsfrom tbl_name[from db_name] [like ‘pattern’]
showcontributors
showcreatedatabasedb_name
showcreateevent event_name
showcreatefunction funcname
。。。。。。
我想知道createtable的語(yǔ)法,可以命令如下:
mysql>sss ? createttt tablebbb
name: ‘createtable’
description:
syntax:
create[temporary]table[ifnot exists]tbl_name
(create_definition,…)
[table_option…]
[partition_options]
or:
create[temporary]table[ifnot exists]tbl_name
[(create_definition,…)]
[table_option…]
[partition_options]
select_statement

感謝您的閱讀,更多相關(guān)文章請(qǐng)關(guān)注PHP中文網(wǎng)(www.php.cn)!

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊9 分享