添加字段
ALTER TABLE name ADD COLUMNS(字段 类型);
添加数据
--添加一行数据
insert into table table_name values('1','a');
--通过select语句插入数据
insert into table table_name
select * from table_name_temp;
查询
--查询前十行
select * from name limit 10;
修改表字段名
ALTER TABLE table_name CHANGE 原字段名 新字段名 STRING column '注释';
修改表名
ALTER TABLE name RENAME TO new_name;
删除表
drop table if exists table_name;
清空表
truncate table table_name;
常用函数
concat()
使用函数CONCAT(a,b)可以把两列字符串拼接