mysql常用的命令

时间:2014-06-18 11:55:42   收藏:0   阅读:230
show databases;
use nxu_life;
show tables;
select * from news where department=‘教务处‘ limit 10,10;
set names gb2312;
show columns from news;
drop database nxu_life;
source D:\nxu_life.sql;
alter table user_info modify column email varchar(50);//修改字符长度
alter table test add myc interger not null default 20;//增加字段
alter table test drop column myc;//删除字段
quit;
exit;//退出

mysql常用的命令,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!