正确写法
insert into hhf_records(RegistrationNumber,MachinesNumber,InDataTime,Flag,CType)
values (11,1,datetime('2014-10-15 07:50:34'),0,0);select LAST_INSERT_ROWID()
错误写法
insert into hhf_records(RegistrationNumber,MachinesNumber,InDataTime,Flag,CType)
values (11,1,date(2014-10-1507:48:00),0,0);select LAST_INSERT_ROWID()
要加入二个单引号:datetime('2014-10-15 07:50:34')