标签:blog data word rem ima syntax alter mys 表结构
库
1. 创建库
create
database
test;
create
database
redmine
character
set
utf8;
3#验证show
create
database
redmine\G;
*************************** 1. row ***************************
Database: redmine
Create Database: CREATE DATABASE `redmine` /*!40100 DEFAULT CHARACTER SET utf8 */
1 row in set (0.00 sec)
2. 删除库drop
database
test;
3. 列出全部的库
show databases;
表
1. 创建表
create
table
test (c1
int
(10),c2
int
(10), c3
int
(10),c4
char
(10));
2. 表结构
desc
test;
show
create
table
test;
3. 删除表
drop
table
test;
4. 列出当前库全部表
show tables;
5. 备份表(20160310)create table reply_bak
select
* from reply;
标签:blog data word rem ima syntax alter mys 表结构
原文地址:http://www.cnblogs.com/feiyu-cn/p/7762579.html