28
Làm thế nào để bạn có được dấu thời gian hiện tại trong Sqlite? current_time, current_date, current_timestamp cả hai ngày được định dạng trả về, thay vì dài.Dấu thời gian Unix trong sqlite?
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
Những gì tôi muốn:
4|23234232