Q

Is COMMENT a reserved word in Oracle?

Is COMMENT a reserved word in Oracle? If so, how can I name a field in a table 'COMMENT'?

Is COMMENT a reserved word in Oracle? If so, how can I name a field in a table 'COMMENT'?
As you can see below, COMMENT is a reserved word in Oracle.
SQL> select keyword from v$reserved_words
  2  where keyword = 'COMMENT';

KEYWORD
----------------------------------------------------------------
COMMENT
I would seriously reconsider trying to create a table with a column name that is a reserved word. Any reason why this column can't be called COMMENTS or USER_COMMENTS?
This was last published in September 2006

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close