开发者

Inserted date of record in sqlite3 database?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜