您的位置:首页 > 数据库 > MySQL

mysql经常使用的命令

2016-01-25 08:17 633 查看
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;//退出
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: