oracle comment基本语句用法
2016-10-03 00:08
302 查看
例:
1.对表的说明
SQL> comment on table scott.emp is '员工信息';
2.对表中列的说明
SQL> comment on column scott.emp.empno is '员工编号';
3.查看表的说明
SQL> select * from user_tab_comments where TABLE_NAME='EMP';
SQL> select * from user_tab_comments where comments is not null;
4.查看表中列的说明
SQL> select * from user_col_comments where TABLE_NAME='EMP';
SQL> select * from user_tab_comments where comments is not null;
5.我们也可以从下面这些视图中查看表级和列级说明:
ALL_COL_COMMENTS
USER_COL_COMMENTS
ALL_TAB_COMMENTS
USER_TAB_COMMENTS
6.删除表级说明,也就是将其置为空
SQL> comment on table emp is ''
7.删除列级说明,也是将其置为空
SQL> comment on column emp.empno is '';
相关文章推荐
- oracle里面如何写case语句及decode and sign 函数用法
- oracle基本操作语句(适合初学者)
- oracle基本语句学习
- TRUNCATE语句的基本用法,值得看下哦
- SQL语句基本的用法
- commandText语句基本用法,+号和“”号的作用
- for语句的基本用法
- Oracle Sql 语句的一些用法
- oracle里面如何写case语句及decode and sign 函数用法
- oracle学习笔记(一)------oracle基础知识和基本sql语句
- Oracle基本语句(1)
- 网上收集的oracle 存储过程的基本用法
- oracle中SQL语句的一些有效常用用法
- commandText语句基本用法,+号和“”号的作用
- SQL语句基本的用法
- oracle基本操作语句
- oracle基本操作语句
- C#中操作Oracle时的SQL语句参数的用法
- Oracle 基本语句语法
- Oracle 基本建表语句