一些命令行操作注意加 分号 “ ; ”
show databases 查看所有数据库
use 数据库名 切换数据库
show tables 查看数据库中所有表
describe 表名 显示表中所有信息
create database [if not exists] 新库名 创建数据库
drop database [if exists] 库名 删除数据库
exit 推出链接
SQL注释
--单行注释
/* */ 多行注释
数据库数据类型
数值类型
tinyint 非常小的数据 1个字节
smallint 2字节
mediumint 3字节
int 4字节常用
bigint 8字节
float 4字节 浮点数
字符串
char 0~255
varchar 0~65535常用
tinytext 微型文本 2^8-1
text 文本串2^16-1 常用于保