DBAsupport.com Forums - Powered by vBulletin
Results 1 to 9 of 9

Thread: add comment to table creation script(urgent)

  1. #1
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Hi, all
    How do I add a comment to a table creation script after the table has been created. I tried
    SQL> alter table TABLENAME add comment on ....
    and it did not work. Any help would be appreciated.

    dragon

  2. #2
    Join Date
    Aug 2000
    Posts
    132

    COMMENT ON TABLE schema.table_name IS
    'This table holds attributes of a product.';

  3. #3
    Join Date
    Mar 2000
    Location
    india
    Posts
    54
    COMMENT ON TABLE tablename 'YOUR COMMENTS';

  4. #4
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Thanks for timely response.

  5. #5
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Sukimac is correct.

  6. #6
    Join Date
    Mar 2000
    Location
    india
    Posts
    54
    Sorry missed 'IS'

    Raghu

  7. #7
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245

    comment on colume

    I am sorry I did not make clear before, my developer wants to put comment on column, I need the syntax for comment on column not just on table. Thanks again for help.

  8. #8
    Join Date
    Jul 2000
    Posts
    296
    COMMENT ON COLUMN tablename.columnname IS 'your comment';

  9. #9
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Thanks to all!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width