Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

In HANA VARCHAR datatype stores unicodes?

$
0
0

Hi,

 

In my previous document (Playing with NVARCHAR in SAP HANA), I write about NVARCHAR, it can store both non-Unicode and Unicode. and VARCHAR stores only non-Unicode characters. but following script insert Unicode in VARCHAR also, if so what is difference between VARCHAR and NVARCHAR.



 

 

CREATE COLUMN TABLE NEWS ( ID INTEGER  NOT NULL , NDATA NVARCHAR(500), DATA VARCHAR(500), PRIMARY KEY ("ID"));

 

 

INSERT INTO NEWS (ID, NDATA, DATA) VALUES(1,'दिल्ली भारत की राजधानी है.', 'Delhi is capital of India.');

 

 

INSERT INTO NEWS (ID, NDATA, DATA) VALUES(2,'मुंबई महाराष्ट्राची राजधानी आहे.', 'Mumbai is capital of Maharashtra.');

 

 

INSERT INTO NEWS (ID, NDATA, DATA) VALUES(3, 'Mumbai is capital of Maharashtra.', 'मुंबई महाराष्ट्राची राजधानी आहे.');

 



and output looks like





Viewing all articles
Browse latest Browse all 5653

Trending Articles



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