You are here: sql for row where value='' « PHP Programming Language « IT news, forums, messages
sql for row where value=''

Posted by meltedown on 06/02/06 22:47

This is probably a stupid question but I don't get it.
I have a table called sites

2 rows have a name='siteisdown'
1 row has a value of 1 and the other has a value of '' (nothing)

This works fine, it returns 1 row with a value of 1, along with all the
other columns.
"SELECT * from sites where name='siteisdown' AND value =".TRUE);

This returns nothing:
"SELECT * from sites where name='siteisdown' AND value ='' ";

I don't understand why this returns nothing.
How do I call the siteisdown row with a value of nothing ?

 

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

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