How to select a column named 'Key'?

  • Hi All - I'm sure this is a silly question covered under SQL 101, but I am not clear how to work with a table that has a column named 'Key'. Everytime I do something like "select key from table" I get an error "Incorrect syntax near the keyword 'key'" and 'key' has blue syntax formatting. I am sure there is a way I can do work with the column, but I don't know how. Any help would be much appreciated.

  • Try this

    CEWII

  • SELECT FROM SomeTable

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Boy am I silly. That is one of the few bits of SQL I actually know (or should know). Thank you both very much - I really appreciate the guidance.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply