SQLite中插入一条数据时,使用当前时间为创建时间,在SQLite3中可以通过使用timestamp类型来实现:

 

create table log(
    content varchar(256),
    logtime TIMESTAMP default (datetime('now', 'localtime'))
)

或者在工具中设置:

 

SQLite时间日期字段,SQLite设置默认时间

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2021-12-28
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-27
  • 2021-08-11
  • 2022-02-25
  • 2021-11-21
  • 2021-12-26
相关资源
相似解决方案