How to insert a timestamp in Oracle?

后端 未结 10 1716
广开言路
广开言路 2020-12-23 02:34

I have an Oracle DB with a timestamp field in it. What is the correct SQL code to insert a timestamp into this field?

10条回答
  •  伪装坚强ぢ
    2020-12-23 03:34

    INSERT INTO TABLE_NAME (TIMESTAMP_VALUE) VALUES (TO_TIMESTAMP('2014-07-02 06:14:00.742000000', 'YYYY-MM-DD HH24:MI:SS.FF'));
    

提交回复
热议问题