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;//退出
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字符串函数初探
- MySql效率问题
- Cobar使用文档(可用作MySQL大型集群解决方案)
- dbutils + mysql事务
- mysql字符串分割
- MySQL实现统计数据并插入数据的存储过程
- mysql基础知识
- mysql加强
- mysql处理高并发,防止库存超卖
- MySql免安装版的配置
- MySQL常用命令
- Mysql 读写分离实现及代理Amoeba的使用
- (转)mysql数据类型
- mysql和mysqli使用笔记
- red hat 7.2下mysql中文乱码问题
- MySQL的启动
- MySQL的启动
- MySQL下载及安装
- MySQL下载及安装
- mysql批量插入