成人AV在线无码|婷婷五月激情色,|伊人加勒比二三四区|国产一区激情都市|亚洲AV无码电影|日av韩av无码|天堂在线亚洲Av|无码一区二区影院|成人无码毛片AV|超碰在线看中文字幕

sql命令查看表結(jié)構(gòu) 怎么用mysql workbench查看表結(jié)構(gòu)?

怎么用mysql workbench查看表結(jié)構(gòu)?MySQL 查看表結(jié)構(gòu)簡單命令。 一、簡單描述表結(jié)構(gòu),字段類型desc tabl_name顯示表結(jié)構(gòu),字段類型,主鍵,是否為空等屬性,但不顯示外鍵。二、

怎么用mysql workbench查看表結(jié)構(gòu)?

MySQL 查看表結(jié)構(gòu)簡單命令。

一、簡單描述表結(jié)構(gòu),字段類型desc tabl_name

顯示表結(jié)構(gòu),字段類型,主鍵,是否為空等屬性,但不顯示外鍵。

二、查詢表中列的注釋信息

select * from information_schema.columns where table_schema = "db" #表所在數(shù)據(jù)庫

and table_name = "tablename" #你要查的表

三、只查詢列名和注釋

select column_name,

column_comment from information_schema.columns where table_schema ="db" and

table_name = "tablename"

四、#查看表的注釋

select table_name,table_comment from information_schema.tables where table_schema = "db" and table_name ="tablename"

ps:二~四是在元數(shù)據(jù)表中查看,我在實際操作中,常常不靈光,不知為什么,有了解的大俠請留印。

五、查看表生成的DDL show create table table_name