mysql常用的命令_MySQL
程序员文章站
2022-06-13 22:46:27
...
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;//退出
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;//退出