乐于技术分享 分享道路上

SQLite时间日期字段默认时间方法

在SQLite中插入一条数据时,使用当前时间为创建时间,在SQLite3中可以通过使用timestamp类型来实现:create table sys_test(     name varchar(20),     createTime TIMESTAMP default (datetime('now', 'localti