On 8 Jan 2003, at 15:27, Svens Klave wrote:

> | image | check |
> | 6782  | 0         |
> | 2732  | 1         |
> | 6734  | 1         |
> 
> so I want to make query
> select * from foo1 where [so is it possible to make some if check=1 then 
> image is image but if check=0 then into image goes other content for 
> example "noimage"]

If I'm understaning you correctly, you want something like

   SELECT IF(check, image, 'noimage') AS image FROM foo1;

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Tobacco Documents Online
http://tobaccodocuments.org
Phone 202-667-6653

---------------------------------------------------------------------
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