dbTalk Databases Forums  

Converting a bare number to an interval and back

comp.databases.oracle comp.databases.oracle


Discuss Converting a bare number to an interval and back in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
angrybaldguy@gmail.com
 
Posts: n/a

Default Converting a bare number to an interval and back - 03-11-2005 , 06:54 PM






Salve.

I have an application in which I would like to convert a number of
seconds into an INTERVAL DAY TO SECOND value and, later, back to a
number of seconds. For reasons relating to inter-database portability,
I'd like to do this in a stored function, not in the database client
application.

Some time spent on google hasn't shown any good ways to approach this.
Any suggestions?

Owen


Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Converting a bare number to an interval and back - 03-12-2005 , 06:36 AM






angrybaldguy (AT) gmail (DOT) com wrote:
Quote:
Salve.

I have an application in which I would like to convert a number of
seconds into an INTERVAL DAY TO SECOND value and, later, back to a
number of seconds. For reasons relating to inter-database portability,
I'd like to do this in a stored function, not in the database client
application.

Some time spent on google hasn't shown any good ways to approach this.
Any suggestions?

Owen

This ng is dead - please repost in c.d.o.database

--
Regards,
Frank van Bortel


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.