Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: sql query number vs string

  1. #11
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    the backticks tell the SQL engine that the word contained within is a literal (e.g., the name of a field or table) and not a keyword or command. it usually makes no difference whatsoever if you use them or not, but it does prevent conflicts -and makes your sql more forward-compatible.

    in this particular case, I'm not sure why it made the difference. it really shouldn't have. but hey, you don't argue with success...!

  2. The Following User Says Thank You to traq For This Useful Post:

    ggalan (12-21-2010)

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
  •