mysql的一些常用命令
2017-01-16 21:28:27
显示数据库列表: show databases;
创建库: create database 库名;
给表改名:rename table ztemp to ztemp4;
删除表 : drop table 表名;
修改字段属性: alter table bbabase change news_id id varchar(5) not null;
在表中增加一字段: alter table bbabase add leave_time datetime not null ;
发表评论: