praful24
Programmer
- Feb 27, 2008
- 4
What is Oracle Comment Feature?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SQL> comment on table s_emp is 'This table contains employee information.';
SQL> comment on column s_emp.last_name
is 'This column records the surname of each employee.';
SQL> comment on column s_emp.salary
is 'This column records the monthly pay in British Pounds Sterling.';
col comments format a50
select table_name, comments
from user_tab_comments
where table_name = 'S_EMP';
TABLE_NAME COMMENTS
------------------------------ -----------------------------------------
S_EMP This table contains employee information.
select table_name, column_name, comments
from user_col_comments
where table_name = 'S_EMP'
and comments is not null;
TABLE_NAME COLUMN_NAME COMMENTS
---------- ----------- --------------------------------------------------
S_EMP LAST_NAME This column records the surname of each employee.
S_EMP SALARY This column records the monthly pay in British Pou
nds Sterling.