ITeye博客

查看Mysql表结构的命令

lixusign · 2011-04-12 15:31 · 数据库 · 数据库 · Markdown


以下是最常用的

desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_schema select * from columns where table_name='表名'; show databases; use 数据库名; show tables;

以下是次常用的

--执行以下sql修改索引 alter table tb_webparamcounter drop index AK_PAS_Name; alter table tb_webparamcounter add UNIQUE AK_PAS_Name(PC_ID,PAC_Name);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。