oracle comment命令用法示例分享建站知識
導讀:1建站知識oracle comment on命令說明及用法示例,大家參考使用吧建設網站seo網站優化培訓。
oracle中用comment on命令給表或字段加以說明,語法如下:
復制代碼 代碼如下:
COMMENT ON { TABLE [ schema. ] { table | view } | seo網站優化軟件COLUMN [ schema. ] { table. | view. | materialized_view. } column | OPERATOR [ schema. ] operator | INDEXTYPE [ schema. ] indextype | MATERIALIZED VIEW materialized_view }IS 'text' ;
用網站seo優化診斷工具法如下:
1.對表的說明
復制代碼 代碼如下:
comment on table table_name is 'comments_on_tab_information';
2.對表中列的說明
復制代碼 代碼如下:
comment on column table.column_name is 'comments_on_col_information';
3.查看表的說明
復制代碼 代碼如下:
SQL> select * from user_tab_comments where TABLE_NAME='EMPLOYEES';
復制代碼 代碼如下:
TABLE_NAME TABLE_TYPE COMMENTS------------------------------ ----------- ----------EMPLOYEES TABLE 員工表
SQL> select * from user_tab_comments where comments is not null;
TABLE_NAME TABLE_TYPE COMMENTS------------------------------ ----------- --------------------------EMPLOYEES TABLE 員工表
4.查看表中列的說明
復制代碼 代碼如下:
SQL> select * from user_col_comments where TABLE_NAME='EMPLOYEES';
復制代碼 代碼如下:
TABLE_NAME COLUMN_NAME COMMENTS------------------------------ ------------------------------ ------------EMPLOYEES EMPLOYEE_ID EMPLOYEES MANAGER_ID EMPLOYEES FIRST_NAME EMPLOYEES  網站推廣優化seo; LAST_NAME EMPLOYEES TITLE EMPLOYEES SALARY 員工薪水
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-22 ,文章oracle comment命令用法示例分享建站知識主要講述示例,命令,oracle comment命令用法示例分享建站網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_5360.html