Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a multi-line table/column comment

user1983440Jul 24 2009 — edited Jul 24 2009
Can someone tell me how to create a multi-line table or column comment?

Apparently, the concatenate operator (||) does not work with the COMMENT statement.

I've searched the Oracle manuals and couldn't find an answer.
 
COMMENT ON TABLE sometbl IS 'i would like to break up this comment into several lines in order to improve readability'; 
Effectively, this is what I'd like to do (but it doesn't work):
 
COMMENT ON TABLE sometbl IS 
  'i would like to break up ' || CHAR(10) || 
  'this comment into several lines ' || CHAR(10) || 
  'in order to improve readability' || CHAR(10); 
Oracle version is 10.2.0.4
This post has been answered by Beijing on Jul 24 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2009
Added on Jul 24 2009
4 comments
3,864 views