Try to return all rows where a specific field is null or not null.
select * from ADDRESS where addr1 = null;
or
select * from ADDRESS where addr1 = 'NULL';
addr1 can be a boolean or text field.
I've tried != null
, is null
, <> null
, and isnull(addr1, 'NULL')
but I get
no viable alternative at input '='
or
no index columns present in by-columns clause with "equals' operator"
Using Cassandra 1.1.1 & Java 1.7_05
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…