Jump to content

[SOLVED] MySQL 'if' STATEMENT


xProteuSx

Recommended Posts

I am wondering if there is any sort of 'if' statement for MySQL.  What I am trying to do is something that looks like this:

 

SELECT * WHERE column1 !=' '

 

So basically I want to select rows where column1 is not empty, or null.  I know that I can select all rows, then filter them using PHP, but I would really like to do this using MySQL if possible.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/138833-solved-mysql-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.