Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Is null really null ?

$
0
0

I have a HANA table with a field defined like:

 

"BUDGET_ASSIGNED" NVARCHAR(1) DEFAULT ' ' NOT NULL ,

 

So when I see that I assume that I can not put a null value to that field, right?

 

However I run this update

update "my_schema"."my_table" set BUDGET_ASSIGNED = 'C' where BUDGET_ASSIGNED is null;

 

no records get updated

 

I run this query:

select BUDGET_ASSIGNED, length(BUDGET_ASSIGNED) from "my_schema"."my_table" and I get:

 

BUDGET_ASSIGNEDLENGTH(BUDGET_ASSIGNED)
0
N1
Y1

 

so obviously I have some null records

 

when I run this update:

update "my_schema"."my_table" set BUDGET_ASSIGNED = 'C' where BUDGET_ASSIGNED '';

I get records updated

 

So ... I'm not really getting that "not null" definition.

 

Mike


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>