28
如何獲取Sqlite中的當前時間戳? current_time,current_date,current_timestamp都返回格式化日期,而不是long。sqlite中的Unix時間戳?
sqlite> insert into events (timestamp) values (current_timestamp);
sqlite> insert into events (timestamp) values (current_date);
sqlite> insert into events (timestamp) values (current_time);
sqlite> select * from events;
1|2010-09-11 23:18:38
2|2010-09-11
3|23:18:51
我想要什麼:
4|23234232