insert into table(datetime) values('2012-12-12 12:12:12');
另外写成
insert into table(datetime) values("2012-12-12")也可以,系统会转换成“2012-12-12 00:00:00”
insert into table_naem (time) vaules ('时间')
上面全是mysql的写法,oracle里应该写to_date,比如
to_date('2013/01/01 11:11:11', 'yyyy/mm/dd HH24:mi:ss')
insert into table (datetime) values('2012-12-25')