Search
 
SCRIPT & CODE EXAMPLE
 

SQL

t sql null or empty string

select * from vendor
where isnull(vendor_email,'') = ''
Comment

sql is null or empty

WHERE ISNULL(column_name);
#Can also use
WHERE column_name IS NULL;
#Example with join
SELECT title FROM series
LEFT JOIN reviews
    ON series.id = reviews.series_id
    WHERE ISNULL(rating);
Comment

PREVIOUS NEXT
Code Example
Sql :: if else in plsql 
Sql :: sql server output parameter 
Sql :: create table employees oracle 
Sql :: mysql command not working in linux 
Sql :: avg mysql 
Sql :: sql compare strings 
Sql :: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client vs code 
Sql :: sql query to get the number of rows in a table 
Sql :: oracle pagination query offset 
Sql :: postgresql get today 
Sql :: mysql compare datetime to another datetime 
Sql :: create mysql database on windows 
Sql :: sql concat 
Sql :: how to query without duplicate rows in sql 
Sql :: left join in codeigniter query builder 
Sql :: mysql delete duplicate rows but keep one 
Sql :: how to insert json value in mysql 
Sql :: how to combine diff colmun value using group by postgres 
Sql :: get records in sql according to month name and count 
Sql :: how to create a table in sql 
Sql :: db.relationship sqlalchemy flask 
Sql :: sql all 
Sql :: create database in mysql 
Sql :: sqlite unique 
Sql :: change user mysql password 
Sql :: insert into using contant values and source table columns with sql 
Sql :: reindexing all tables sql server 
Sql :: Create boolean column in MySQL with false as default value? 
Sql :: postgres 11 add primary key 
Sql :: mysql min value row 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =