我有一个带有timestamp字段的Oracle DB 。将atimestamp插入此字段的正确SQL代码是什么?
timestamp
insert into tablename (timestamp_value) values (TO_TIMESTAMP(:ts_val, 'YYYY-MM-DD HH24:MI:SS'));
如果要插入当前时间戳记,则:
insert into tablename (timestamp_value) values (CURRENT_TIMESTAMP);