Home » SQL & PL/SQL » SQL & PL/SQL » How to store special character in database (Oracle 9i, 9.2.0.1.0, RHEL 2.1 AS)
How to store special character in database [message #472180] Thu, 19 August 2010 03:57 Go to next message
jimit_shaili
Messages: 237
Registered: June 2006
Location: India, Ahmedabad
Senior Member
Dear friends

i want to store special characters in database. i have tried following but not succeed. So please suggest me the way how to store and retrieve it. Herewith i'm posting my try.I want to store and retrieve following character.

SQL> select nchr(181) from dual;

N
-
µ

SQL> create table temp (uom varchar2(10));

Table created.

SQL> insert into temp values(nchr(181));

1 row created.

SQL> commit;

Commit complete.

SQL> select * from temp;

UOM
----------
?


here i'm getting the '?' but i want 'µ'.

Regards

Jimit
Re: How to store special character in database [message #472218 is a reply to message #472180] Thu, 19 August 2010 05:21 Go to previous messageGo to next message
Michel Cadot
Messages: 68765
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
You insert into a VARCHAR2 and not into a NVARCHAR2 so there is a conversion to the database character which does not support this character.

Regards
Michel
Re: How to store special character in database [message #472233 is a reply to message #472218] Thu, 19 August 2010 05:54 Go to previous message
jimit_shaili
Messages: 237
Registered: June 2006
Location: India, Ahmedabad
Senior Member
Thanks Michel,it seems to be working okay.

Regards

Jimit
Previous Topic: need query
Next Topic: ORA-00036 error (maximum # recursive levels)
Goto Forum:
  


Current Time: Tue Aug 19 17:00:43 CDT 2025