How to convert the CURRENT_TIMESTAMP function in a NUMBER using ORACLE?
Using the following code, I'm able to extract the CURRENT_TIMESTAMP of the system
SELECT SYS_EXTRACT_UTC(CURRENT_TIMESTAMP) FROM DUAL;
What I want is to use the result of the above code to create the corresponding timestamp in unix format. Pratically: 1) with SELECT SYS_EXTRACT_UTC(CURRENT_TIMESTAMP) FROM DUAL; i receive this result:
--------------------------------------------------
| SYS_EXTRACT_UTC(CURRENT_TIMESTAMP) |
--------------------------------------------------
| 30-OTT-14 09:51:43,164232000 |
--------------------------------------------------
2) And I want to convert it to:
--------------------------------------------------
| UNIXTIMESTAMP |
--------------------------------------------------
| 1414662703 |
--------------------------------------------------
Is that possible? Thank you all in advance