Hi All,
SAP HANA supports NVARCHAR datatype. NVARCHAR (UNicode Variable Length character) is datatype, it can store both non-Unicode and Unicode (i.e. Japanese, Korean, Hindi, Marathi etc) characters. It takes 2 bytes per Unicode/Non-Unicode character. Maximum length in characters and is an integer between 1 and 5000.
Lets create one example for Ncarchar. Following script create one table "News" which has
- "ID" is Integer column (PK),
- "NDATA" is NVARCHAR(500) column, stores Unicode data, and
- "DATA" is VARCHAR(500) column, stores English version of "NDATA"
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.');
and output looks like(see attached file if following picture not visible),