mysql经常使用的命令

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;//退出
posted on 2016-01-25 08:17  gcczhongduan  阅读(144)  评论(0编辑  收藏  举报