cancel
Showing results for 
Search instead for 
Did you mean: 

how to select a empty string or white space in HANA SPS 10

former_member197081
Participant
0 Kudos

I tried using where "colName" = '', It's not working. And also please suggest how to select all the Empty or Null columns (no value through out the table). My target is list all the Null or empty columns in any table.

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

for empty records:

select *

from <SCHEMA.TABLE>

where ltrim(rtrim("YOUR_COLUMN")) = '';

for null records:

select *

from <SCHEMA.TABLE>

where "YOUR_COLUMN" is null;