![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: How to format numbers pulled back from an Oracle DB using SQL.by dmmiller2k (Chaplain) |
on Mar 18, 2002 at 04:57 UTC ( #152405=note: print w/replies, xml ) | Need Help?? |
My Oracle is a little rusty, but can you not format that particular column in your result set using Perl? For example, adding to your code,
Update: There's no particular reason not to simply replace the value returned from the fetch method with the formatted value, after which you may do whatever you want with the new formatted value:
In Sybase (which I've been using more recently), it's possible to convert the number to a string (VARCHAR) with precisely the format you need right in the SELECT statement, but while I know Oracle can do the same, I cannot remember exactly how. dmm
In Section
Seekers of Perl Wisdom
|
|