You are here: IFNULL returning NULL when there's really a value! « PHP SQL « IT news, forums, messages
IFNULL returning NULL when there's really a value!

Posted by laredotornado on 02/24/06 06:26

Hi,

I have a column SALE_PRICE, which is a FLOAT type. I have a row that
contains the value "0.25", however when I execute this statement

SELECT IFNULL(SALE_PRICE, 'Empty') FROM PRODUCTS WHERE PRODUCT_ID = 2

I get the result "Empty" instead of ".25". Why is that? What can I do
to ensure that I get the value ".25" instead of "Empty"?

Thanks, - Dave

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация