Solved

How to make comment when create table by ERWin?

Posted on 2006-06-14
3
2,830 Views
Last Modified: 2013-12-12
I am trying to use ERWin to create table for ORACLE, but I am not sure how to add comment for all column, I mean I hope all Logical column name is treated as comment for that column, does anyone help me, what can I do?
0
Comment
Question by:mikezang
3 Comments
 
LVL 8

Accepted Solution

by:
sapnam earned 50 total points
ID: 16931762
You can add comments to the table or to columns in the table.  The command for adding comment to tables is]
 COMMENT ON TABLE [schema.]table IS 'text'

The command for adding comments to columns in a table is
   COMMENT ON COLUMN [schema.]table.column IS 'text'

You can view the comments by using the data dictionary views

DBA_COL_COMMENTS     ALL_COL_COMMENTS     USER_COL_COMMENTS  - For Couimns
DBA_TAB_COMMENTS     ALL_TAB_COMMENTS     USER_TAB_COMMENTS - For Tables
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question