DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: milliseconds

  1. #1
    Join Date
    Jul 2005
    Posts
    23

    milliseconds

    has anyone had any experience using dates down to the millisecond level ?

    I'm converting an app from sybase to oracle and Im trying to convert

    datediff(ss, '1900-01-01 12:00:00:000AM', transhist_duration_tim) * 300 as duration,

    to its oracle equivalent like this

    ((((transhist_duration_tim - TO_DATE('01/01/1900:12:00:00AM', 'dd/mm/yyyy:hh:mi:ssam'))*24) *60) *60) * 300 as duration,

    the sybase version calculates down to the millisecond, but how can this be done with oracle ?
    im using 10g

    tia

  2. #2
    Join Date
    Feb 2005
    Posts
    158

  3. #3
    Join Date
    Jul 2005
    Posts
    23

    millisecond

    unfortunately the database was migrated from Sybase and Im stuck with the underlying datatype so I cant change it to a timestamp.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width