Comment 的使用
来源:互联网 发布:淘宝评价怎么看五星 编辑:程序博客网 时间:2024/06/05 21:01
1.对表的说明
comment on table table_name is 'comments_on_tab_information';
2:对表中列进行说明:
comment on column table.column_name is 'comments_on_col_information';
3:查询表的说明:
select * from user_col_comments where TABLE_NAME='AFTER_SALE';
SQL> select * from user_tab_comments where comments is not null;
4:查询对表中列的说明
SQL> select * from user_col_comments where TABLE_NAME='EMPLOYEES';
SQL> select * from user_col_comments where comments is not null;
5.我们也可以从下面这些视图中查看表级和列级说明:
ALL_COL_COMMENTS
USER_COL_COMMENTS
ALL_TAB_COMMENTS
USER_TAB_COMMENTS
6.删除表级说明,也就是将其置为空
SQL> comment on table employees is '';
Comment added
7.删除列级说明,也是将其置为空
SQL> comment on column employees.salary is '';
Comment added
comment on table table_name is 'comments_on_tab_information';
2:对表中列进行说明:
comment on column table.column_name is 'comments_on_col_information';
3:查询表的说明:
select * from user_col_comments where TABLE_NAME='AFTER_SALE';
SQL> select * from user_tab_comments where comments is not null;
4:查询对表中列的说明
SQL> select * from user_col_comments where TABLE_NAME='EMPLOYEES';
SQL> select * from user_col_comments where comments is not null;
5.我们也可以从下面这些视图中查看表级和列级说明:
ALL_COL_COMMENTS
USER_COL_COMMENTS
ALL_TAB_COMMENTS
USER_TAB_COMMENTS
6.删除表级说明,也就是将其置为空
SQL> comment on table employees is '';
Comment added
7.删除列级说明,也是将其置为空
SQL> comment on column employees.salary is '';
Comment added
阅读全文
0 0
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- #pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- pragma comment的使用
- IO-3、文件分配块的三种方式
- KMP算法
- UVA 10285 Longest Run on a Snowboard(记忆化搜索|动态规划入门)
- 程序员必须掌握的8大排序算法
- IntelliJ IDEA破解教程
- Comment 的使用
- Nginx更改源码隐藏软件名和版本号
- spring data 生成表结构时修改字段类型
- 第一篇博客
- Oaecle 命令行基础操作篇(6)
- QSplitter
- php 弱类型总结
- TermVector项向量
- set define off