Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Inserting UTF-8 characters using SQL ...

erictankokApr 1 2007 — edited Apr 2 2007
Hi

I have created my database to use UTF8 characterset and I have set the NLS_LENGTH_SEMANTICS to 'CHAR'.

How do I insert UTF-8 data into a VARCHAR2 column?

I know I can use SQL Loader to do so, but if I want to use only SQL, how do I write my SQL statements?

Provided I set my NLS_LANG accordingly, can my SQL statement include raw UTF8?

For example,

insert into message_tbl (mydata) values ('日本');

Thanks.

PS. I know there is no UTF8 native support in Windows, but I am working in a Unix environment.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2007
Added on Apr 1 2007
2 comments
2,316 views