Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nchar inserts in Oracle 8i

Status
Not open for further replies.

shyamal

Programmer
Aug 14, 2000
79
US
A typical insert for an nchar field does not work:

insert into DEV.SLEONTPS (FLDNCHAR) VALUES ("test")

I was told to use this:

insert into DEV.SLEONTPS (FLDNCHAR) VALUES TRANSLATE("test" USING NCHAR_CS);

This still errors out with the following;
ORA-00906: missing left parenthesis
 

I am no expert on this NCHAR thing but can you replace " (double)with ' (single) instead, SUCH AS;

insert into DEV.SLEONTPS (FLDNCHAR) VALUES ('test')

OR

insert into DEV.SLEONTPS (FLDNCHAR) VALUES TRANSLATE('test' USING NCHAR_CS);


 
Thanks,
Actually the translate did not work. What worked was:

insert into DEV.SLEONTPS (FLDNCHAR) VALUES (N'test')

Thanks once again!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top