数据
1、查看当前用户下的所有表,以及相关属性
select * from user_tables;
2、表的增删改查
create/ drop table 表名
修改表名: rename 旧表名 to 新表名
查看表字段: desc 表名
增加表字段:alter table 表名 add 字段名 数据类型 comment on column 表名.列名 is ‘注释内容’
删除表字段:alter table 表名 drop column 列名
修改表字段类型:alter table 表名 modify(字段名 新的数据类型)
修改表字段名称:alter table 表名 rename column 旧字段名 to 新字段名
3、增加表数据:
insert into 表名(列名)values (值)
insert into 表名<select 语句>