oracle中的备注的配置与查询
生活随笔
收集整理的這篇文章主要介紹了
oracle中的备注的配置与查询
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在oracle中我們經常看到給表和列添加備注,備注增加了后期的可維護性
1.對表的說明
comment on table table_name is 'comments';
2.對表中列的說明
comment on column table.column_name is 'comments';
3.查看表中列的說明
SQL> select * from user_col_comments where TABLE_NAME='EMPLOYEES';
4.查看表的說明
SQL>select * from user_tab_comments where TABLE_NAME='EMPLOYEES';
5.刪除表級說明,也就是將其置為空
SQL> comment on table employees is '';
Comment added
6.刪除列級說明,也是將其置為空
SQL> comment on column employees.salary is '';
Comment added
轉載于:https://www.cnblogs.com/zwkevin/p/4877456.html
總結
以上是生活随笔為你收集整理的oracle中的备注的配置与查询的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Repository模式
- 下一篇: HttpContext.Current.