MySQL: SELECT 0 FROM....
Posted: Sun Sep 18, 2005 8:08 pm
I think in Oracle you can do a 'select 0' thing. I'm not familiar with the language, so I'm not sure.
Anyway, I just want to check if something is in a database. Erhm.. basically...
Should I put something different where the ??? are, or should I just put 'row1' there?
Anyway, I just want to check if something is in a database. Erhm.. basically...
Code: Select all
| 2 | 3 |
| 3 | 3 |
| 5 | 1 |
| 3 | 7 |Code: Select all
SELECT ??? FROM table WHERE row1='5' AND row2='1';
...if (mysql_num_rows()), do whatever