SELECT NULL Rows with MySQL
Published on November 21, 2006
By Pete Freitag
By Pete Freitag
Need to select NULL
rows with MySQL or SQL Server, here's how:
SELECT columns FROM table WHERE column IS NULL
Or to select all rows that are not null, you can use IS NOT NULL
SELECT columns FROM table WHERE column IS NOT NULL
SELECT NULL Rows with MySQL was first published on November 21, 2006.
If you like reading about mysql, or sql then you might also like:
- Order by NULL Values in MySQL, Postgresql and SQL Server
- Top 10 Reserved SQL Keywords
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
- Calculating Distance in Miles from Latitude and Longitude