开发者

Inserted date of record in sqlite3 database?

开发者 https://www.devze.com 2022-12-16 06:15 出处:网络
I inserted a record in an sqlite3 d开发者_C百科atabase. I want to know the date on which that table inserted in database.sqlite3 does not store change dates automatically, so if you want to get them l

I inserted a record in an sqlite3 d开发者_C百科atabase. I want to know the date on which that table inserted in database.


sqlite3 does not store change dates automatically, so if you want to get them later you should insert the date to database yourself.


The SQLite function julianday('now') will return a floating point value that represents the current date and time. This can be used in an insert.

You may also want to check out this question and its answer(s). How get a datetime column in SQLite with Objective C

0

精彩评论

暂无评论...
验证码 换一张
取 消