Pound (£) sign in Oracle 8i [message #244754] |
Thu, 14 June 2007 01:04 |
kanis
Messages: 61 Registered: November 2006
|
Member |
|
|
Hi,
I am in a need of generating pound (£) sign.
e.g
select 'Amount is '||chr(164)||'2.40' from dual
results
Amount is $2.40
Same way I need the result Amount is £2.40
Regards,
Kanis
|
|
|
|
Re: Pound (£) sign in Oracle 8i [message #244772 is a reply to message #244754] |
Thu, 14 June 2007 01:39 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
1. set the currency to pounds:
alter session set nls_currency = '£';
2. Select your number, and add a to_char including the 'L' number format element:
SQL> alter session set nls_currency = '£';
Session altered.
SQL>
SQL> select to_char(1/3,'L990D99') x
2 from dual
3 /
X
-----------------
£0.33
MHE
|
|
|