i believe you can use
CREATE TABLE test (
id INTEGER PRIMARY KEY AUTOINCREMENT,
t TIMESTAMP
DEFAULT CURRENT_TIMESTAMP
);
as of version 3.1 (source)
More Related Contents:
- Select first row in each GROUP BY group?
- SQLite – UPSERT *not* INSERT or REPLACE
- How can I list the tables in a SQLite database file that was opened with ATTACH?
- Update table values from another table with the same user name
- SQL Select between dates
- How to pivot in SQLite or i.e. select in wide format a table stored in long format?
- What are valid table names in SQLite?
- FULL OUTER JOIN with SQLite
- Delete column from SQLite table
- How do I insert datetime value into a SQLite database?
- How to get a list of column names on Sqlite3 database?
- Select random row(s) in SQLite
- basic recursive query on sqlite3?
- SQLite and custom order by
- Drop all tables command
- SQLite auto-increment non-primary key field
- GROUP_CONCAT in SQLite
- How to do IF NOT EXISTS in SQLite
- Core Data Performance with Single Parent Entity
- Match only entire words with LIKE?
- What is causing Foreign Key Mismatch error?
- How to create timestamp column with default value ‘now’?
- String concatenation does not work in SQLite
- How to split comma-separated values?
- sqlite select with condition on date
- Unfindable SQLite Syntax Error
- SQLite Order By Date1530019888000
- SQL – Inserting a row and returning primary key
- How to select the first N rows of each group?
- Copy table structure to new table in sqlite3