how to insert date and time in oracle?

前端 未结 5 935
清歌不尽
清歌不尽 2020-12-08 00:23

Im having trouble inserting a row in my table. Here is the insert statement and table creation. This is part of a uni assignment hence the simplicity, what am i doing wrong?

5条回答
  •  借酒劲吻你
    2020-12-08 01:07

    You can use

    insert into table_name
    (date_field)
    values
    (TO_DATE('2003/05/03 21:02:44', 'yyyy/mm/dd hh24:mi:ss'));
    

    Hope it helps.

提交回复
热议问题