Re: Enclosing fields in MySQL queries with `" or '
| From: | Richard Lynch | Date: | Tue, 13 Mar 2007 02:15:57 +0000 |
| Subject: | Re: Enclosing fields in MySQL queries with `" or ' | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250379@lists.php.net to get a copy of this message | ||
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...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?