日期:2014-05-16  浏览次数:20941 次

MySQL常用的SQL语句

//输出所有信息

show full fields from '表名称'; 


//改表名

ALTER  TABLE table_name RENAME TO new_table_name

或 RENAME TABLE table_name TO new_table_name


//查看注释[转自:http://hi.baidu.com/ah__fu/item/1e383b0e5af426c72f4c6b65]

1 创建表的时候写注释

create table test1

(field_name int comment '字段的注释'