niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle
Converting a type (e.g. Decimal) BEFORE writing to ResultSet ?
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
George Dainis
*nix forums beginner


Joined: 09 Feb 2005
Posts: 10

PostPosted: Tue Feb 15, 2005 11:48 pm    Post subject: Converting a type (e.g. Decimal) BEFORE writing to ResultSet ? Reply with quote

As well known a DATE or TIMESTAMP type can be converted (to VARCAHR) after selection but BEFORE
writing to the ResultSet by using the CONVERT function e.g.

SELECT CONVERT(char(10), MYTIMESTAMP, 101)) FROM ... WHERE ....

Is there something similar if the original field is a DECIMAL/NUMERIC field?

E.g.

SELECT DEC_CONVERT(char(30), MYDECIMAL, '###########0.00') FROM ..... WHERE ....

George
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 2:45 am | All times are GMT
navigation Forum index » Databases » Oracle
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts class that have a member of type that's derived from it Mirko Puhic C++ 8 Fri Jul 21, 2006 1:53 am
No new posts to_char number format with optional decimal-point? Martin T. Oracle 3 Thu Jul 20, 2006 10:53 am
No new posts converting array values to monomaniac21 PHP 11 Thu Jul 20, 2006 10:17 am
No new posts Unable to lock a file to stop sendmail writing to it GarfGarf Perl 4 Thu Jul 20, 2006 8:54 am
No new posts how to rewind to file beginning immediately after writing... Rajorshi Biswas C 3 Thu Jul 20, 2006 5:59 am

Problem Mortgage | Bankruptcy | Online Advertising | Bankruptcy | 70s clothes
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1149s ][ Queries: 16 (0.0548s) ][ GZIP on - Debug on ]