SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How do you add Comment to Columns of a Table

    Hello,

    I want to know how does one add Comments to Columns of a Table?

    I thought it is done this way:

    ALTER TABLE compare temp VARCHAR(200) DEFAULT 'Hello' COMMENT 'This is my comment about this column';

    But after I created the above sample Column and did DESCRIBE table, the comment is not after that column! Is there a special DESCRIBE for seeing the comments associated with each Column or does one attach a comment to a column in a diff way?

    ThanX.

    Anoox search engine volunteer

    www.anoox.com

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,276
    Mentioned
    60 Post(s)
    Tagged
    3 Thread(s)
    use SHOW CREATE TABLE instead of DESCRIBE
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you

    Quote Originally Posted by r937 View Post
    use SHOW CREATE TABLE instead of DESCRIBE

    Anoox search engine volunteer

    www.anoox.com


Bookmarks

Posting Permissions

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