date format as timestamp [message #623549] |
Thu, 11 September 2014 06:56 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/9807c59f4b66faa80f4f759abc7bac59?s=64&d=mm&r=g) |
Mayur Shinde
Messages: 60 Registered: August 2014 Location: Pune, Maharashtra
|
Member |
|
|
Hi,
I have to save date as timestamp into database.
I declare one global variable as :
I am using below mentioned code:
INSERT INTO TRANSACTIONS_MST(CR_BY)VALUES (:GLOBAL.CRDT);
But when I run below mentioned query:
SELECT cr_dt FROM TRANSACTIONS_MST;
OUTPUT is: 9/11/2014 12:00:00 AM
But I want output as exact date and time.
Please suggest solution.
|
|
|
|
|