常用Mysql命令
2015-12-28 16:07
393 查看
1.mysql查看表结构命令,如下:
desc 表名;
show columns from 表名;
describe 表名;
show create table 表名;
use information_schema
select * from columns where table_name='表名';
顺便记下:
show databases;
use 数据库名;
show tables;
创建数据库
create database abc;
desc 表名;
show columns from 表名;
describe 表名;
show create table 表名;
use information_schema
select * from columns where table_name='表名';
顺便记下:
show databases;
use 数据库名;
show tables;
创建数据库
create database abc;
相关文章推荐
- MySQL字符集设置及字符转换
- Mysql 命令
- MySQL explain执行计划解读
- MySql中LongText字段对应Hibernate映射文件的设置(转)
- mysql sp
- DOS执行mysql数据库备份及压缩
- mysql事务锁等待时间
- MySQL Fabric实验(一)HA
- mysql 内连接、左连接、右连接
- mysql查询上一条和下一条信息
- mysql常见命令
- mysqldump使用
- mysql个人笔记
- mysql报错1872: Slave failed to initialize relay log info structure from the repository
- mysql报错解决MySQL Binlog(异常)——mysqlbinlog: unknown variable 'default-character-set=utf8'
- MySQL 5.7 传统复制到GTID在线切换
- Windows下更改MySQL数据库的存储位置
- MySQL 分区表
- MySQL 分区表
- mysql 数据库记录