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

Thread: apostrophe's in an update statement

  1. #1
    Join Date
    Dec 2000
    Posts
    5
    I'm too lazy to look it up, but how would you format a string that contains an appostophe or single quote in a SQL statement? For example:

    I want to update the city_name column of one of my tables with the following value: COEUR D'LENE. How would I enclose the single quote/apostrophe? Thanks in advance.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    '' (If you're too lazy to look it up, I'm too lazy to give you a full explanation)
    Jeff Hunter

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