📜  oracle 当前时间戳插入语句 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:11.057000             🧑  作者: Mango

代码示例1
--if you want to hardcode the time stamp: 

insert
into tablename (timestamp_value)
values (TO_TIMESTAMP(:ts_val, 'YYYY-MM-DD HH24:MI:SS'));

--if you want the current time stamp to be inserted then:

insert
into tablename (timestamp_value)
values (CURRENT_TIMESTAMP);