I have col1 in myTable which is varchar, and I have to insert here timestamp eg:- 09-MAY-11 10.23.12.0000 AM.
Now please tell me:
- How to insert into myTable with taking sysdate in above format…
- How to retrieve data from col1 in tha same timestamp format..
INSERT:
SELECT:
But it is much better to store the data directly as a timestamp.
Then you can compare the values or modify them directly.