This will select all rows where some_col
is NULL
or ''
(empty string)
SELECT * FROM table WHERE some_col IS NULL OR some_col="";
More Related Contents:
- Recreating a query using INNER JOIN? [duplicate]
- Create a Cumulative Sum Column in MySQL
- How to perform grouped ranking in MySQL
- Equivalent of explode() to work with strings in MySQL
- MySQL Trigger after update only if row has changed
- MySQL “WITH” clause
- mysql select dynamic row values as column names, another column as value
- MySQL “Group By” and “Order By”
- MySQL DELETE FROM with subquery as condition
- MySQL Query to select data from last week?
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- SELECT / GROUP BY – segments of time (10 seconds, 30 seconds, etc)
- Is it possible to query a tree structure table in MySQL in a single query, to any depth?
- Simple Random Samples from a Sql database
- How to convert number of week into date?
- The total number of locks exceeds the lock table size
- update multiple rows using limit in mysql?
- Mysql 1050 Error “Table already exists” when in fact, it does not
- How to get the latest record in each group using GROUP BY? [duplicate]
- How do I UPDATE a row in a table or INSERT it if it doesn’t exist?
- SQL unique varchar case sensitivity question
- How do I count columns of a table
- How to regex in a MySQL query
- Why MySQL is giving error “Not allowed to return a result set from a function”?
- MySQL 5.6 – DENSE_RANK like functionality without Order By
- Update MySQL with if condition
- “Unknown column in ‘field list'”, but column does exist
- How do I combine the results of two queries with ordering?
- ERROR 1115 (42000): Unknown character set: ‘utf8mb4’
- MYSQL Select One Random record from each Category