Re: Enclosing fields in MySQL queries with `" or '

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/03/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Wed, March 7, 2007 1:22 pm, Dotan Cohen wrote:
>> A backtick (`) on the other hand is a mysql-ism. It allows you to
>> use
>> keywords as field names (eg `index`) amongst other things (including
>> quoting strings).

I *think* that this is actually SQL-92 specification, but don't quote
me on that.

You can use `foo` to make the SQL parser know that foo is not a
reserved word but an identifier...


I'm usually careful not to name my fields "select", "from", "where",
and the like. But if I ever need it, now I know. Thanks.

Dotan Cohen

http://lyricslist.com/lyrics/artist_albums/646/tesla.html
http://what-is-what.com/what_is/wikipedia.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux