I've got a float field with the value ".5" (I've insertet a "0.5"-value,
but Oracle formats the value to ".5").
How can I "re"format the float when I'm SELECTing this value? I wanna
have "0.5" as a return value.
Greetings from Rostock, Germany!
Tino
--
Tino Korth Registered Linux User #286417
www.tinokorth.de - ICQ 10771191 http://counter.li.org
maybe with is you're looking for:
select to_char(0.5,'0D0') from dual
bye
Ralf
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 24.09.2002, 11:08:44, schrieb Tino Korth <news...@tk79.de> zum Thema
number format (.5 instead of 0.5):
> maybe with is you're looking for:
> select to_char(0.5,'0D0') from dual
that's it! :o)
Is is possible to set that format session-wide (ALTER SESSION SET ...)?
SQL> create table number_test (a number);
Table created.
SQL> insert into number_test values (.5);
1 row created.
SQL> col a format 999,990.99
SQL> select * from number_test;
A
-----------
0.50
SQL> col a format 999,990.9
SQL> select * from number_test;
A
----------
0.5
"Tino Korth" <news...@tk79.de> wrote in message
news:ampa2j$3tp$1...@nntp-m01.news.aol.com...