Actually, you can have:

WHERE column = column
WHERE constant = constant
WHERE column = constant
WHERE constant = column

All are allowed.



-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 8:46 AM
To: CF-Talk
Subject: ot: sql oddity (but weird)


select * from routes where 10509 = id

why does this work? I always thought that it was supposed to read
like...

select * from routes where id = 10509

column, before the value?

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to