Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: Asking for quotation

    What is the difference ',"?
    Last edited by accessman2; 11-24-06 at 13:16.

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    what is the difference between a question mark and an exclamation mark!

    they are different because of different purposes?



    the single quote is for strings

    the double quote is for table/column names containing special characters
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Quote Originally Posted by r937
    the double quote is for table/column names containing special characters
    ...though the more common method of handling this is with square brackets: create table tbl1 ([Total All] int)
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by blindman
    ...though the more common method of handling this is with square brackets: create table tbl1 ([Total All] int)
    ... though the standard sql method of handling this is with doublequotes: create table tbl1 ("Total All" int)

    isn't it nice to know that sql server supports the standard sql method
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  5. #5
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    if you called the table TotalAll with no spaces, then you wouldn't have to type so many " and/or [].

    also TotalAll seems redundant to me. how about AbsolutelyEverythingTotalAll?

Posting Permissions

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