Possible Duplicate:
Add Currency Sign £, $ to certain fields ORACLE
I have a table of values that represent money, I want to prefix the SQL query output with a £ sign.
Is there anyway of doing this?
Possible Duplicate:
Add Currency Sign £, $ to certain fields ORACLE
I have a table of values that represent money, I want to prefix the SQL query output with a £ sign.
Is there anyway of doing this?
You can
SELECT to_char( column_name, '£999,999,999.99' )
FROM table_name
assuming you want to hard-code the currency symbol and the formatting. If you want to use the session's NLS settings to determine the appropriate currency symbol and grouping symbol
SELECT to_char( column_name, 'L999G999G999D99' )
FROM table_name
Breaking that down
Use something like: to_char(money, '£9999.00')
.
Details here.