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
精彩评论