原文出处:http://www.phpernote.com/MySQL/1120.html 查看表结构: desc tabl_name; show columns fromtable_name: 常用的通过mysql命令来更改表结构的一些sql语句,包括添加.删除.修改字段.调整字段顺序. 添加字段: alter table `user_movement_log` Add column GatewayId int not null default 0 AFTER `Regionid`; (在哪个…
使用如下命令:select table_schema,table_name,column_name,column_type,column_key,is_nullable,column_default,column_comment,character_set_name from information_schema.columns where table_schema='库名' and table_name='表明'; 快捷方式:desc 表名; 无注释显示…