At 6:03 PM -0300 5/24/01, Adriano Nagelschmidt Rodrigues wrote:
>Hi,
>
>Supposing I have the following column definition:
>
>level  ENUM('bad', 'good', 'great') NOT NULL
>
>I would like to be able to do:
>
>SELECT * FROM foo WHERE level >= 'good'
>
>Yet this doesn't work (MySQL v 3.23.38). I have to use
>
>level >= 2 instead.
>
>Shouldn't a numeric context be applied by the server in this case? eg,

Why?  'good' isn't a number, and it's perfectly legal to compare strings
with the >= operator.


>replacing the label 'good' by 2, instead of doing a string sort.


-- 
Paul DuBois, [EMAIL PROTECTED]

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to