oracle systimestamp (sysdate) to milliseconds

前端 未结 7 1262
予麋鹿
予麋鹿 2020-12-16 14:15

Could you provide implementation of stored function to get current systimestamp as milliseconds.
Something I can use like

select current_tim         


        
7条回答
  •  清酒与你
    2020-12-16 14:56

    AFAIK, there is no direct way for achieving this (other than manually writing a long-winded SQL function).

    Why do you need this specifically?

    You could use a stored Java function and then use the System.getCurrentMillis() that Java provides to return you a value in Milliseconds from 1.1.1970 to now.

提交回复
热议问题