I have the following fields
1> WorkName - Varchar 2> TimeStap
I wanted to create a Table with the above fields.
-
What will be the TimeStamp datatype
-
How can I insert timestamp values to the table.
-
What will the timestamp value while inserting data or how to fetch the timestamp.
I have worked on SQLite but don’t have any experience on adding TimeStamp as a field to the table & adding values to that.
What kind of CREATE & INSERT statements should I use?
There are limited datatypes available in a Sqlite Database, so the one I find useful for dates is integer – this will accept long values (dynamically adjusts its size) so for dates store the milliseconds value of a date and the date can be easily reconsituted when reading the millisecond values back out of the database.