sql

sqlite

时间戳转日期

select datetime(1613714753, 'unixepoch', 'localtime');

输出

2021-02-19 14:05:53

当前时间戳

select strftime('%s','now');

输出

1613714753

查询所有表

SELECT * FROM sqlite_master