常用的sql命令

1 mysql创建数据库

create database [database name];

2 创建表

create table [table name]([first column name] [first column type], [second column name] [second column type], ...);

3 插入数据

insert into [table name] values([first value], [second value], ...);

4 mysql常用数据类型

4.1 整型

tinyint 1; smallint 2; mediumint 3; int 4; bigint 8;

4.2 浮点

float; double

4.3 字符

char(n),n<=255; varchar(n), n<65535;

tinytext 2^8个字节

text 2^16个字节

mediumtext 2^24个字节

longtext 2^32个字节

上一篇:关于iOS开发中info.plist文件的解读


下一篇:Hive 学习之路(三)—— Hive CLI和Beeline命令行的基本使用