1.实验用数据表
①Select * from tab; 查询当前用户下的所有表,tab为系统表名。
②select *from user_tables;详细地查询当前用户下的所有表,user_tables为表名。
③desc 表名;查看表结构
2.添加注释
(1)为表添加注释:comment on table emp is ’雇员表’;
(2)为列添加注释:comment on column emp.Empno is ‘雇员工号’;
1.实验用数据表
①Select * from tab; 查询当前用户下的所有表,tab为系统表名。
②select *from user_tables;详细地查询当前用户下的所有表,user_tables为表名。
③desc 表名;查看表结构
2.添加注释
(1)为表添加注释:comment on table emp is ’雇员表’;
(2)为列添加注释:comment on column emp.Empno is ‘雇员工号’;