Re: 4==4something: equal vs identical

2005-04-18 Thread Eric Bergen
The opposite of Paul's cast is: select '4ae'f + 0; That will show you what MySQL ends up with after casting a string to an integer. -Eric On 4/16/05, Paul DuBois <[EMAIL PROTECTED]> wrote: > At 22:18 +0200 4/16/05, Andy Pieters wrote: > >Hi everone > > > >I ran into some situation where MySql sel

Re: 4==4something: equal vs identical

2005-04-16 Thread Paul DuBois
At 22:18 +0200 4/16/05, Andy Pieters wrote: Hi everone I ran into some situation where MySql selects a row by using the following query: SELECT `id` FROM `shop_products` WHERE `id`="4aef" LIMIT 1; ++ | id | ++ | 4 | ++ Granted the field IS of type int but 4 is not identical to 4aef (it

4==4something: equal vs identical

2005-04-16 Thread Andy Pieters
Hi everone I ran into some situation where MySql selects a row by using the following query: SELECT `id` FROM `shop_products` WHERE `id`="4aef" LIMIT 1; ++ | id | ++ | 4 | ++ Granted the field IS of type int but 4 is not identical to 4aef (it may be equal to the eyes of MySql) Is