Can I create a datetime column with default value in sqlite3?
Posted
by NobodyMan
on Stack Overflow
See other posts from Stack Overflow
or by NobodyMan
Published on 2010-04-10T18:39:31Z
Indexed on
2010/04/10
18:43 UTC
Read the original article
Hit count: 210
Is there a way to create a table in sqlite3 that has a datetime column that defaults to 'now'?
The following statement returns a syntax error:
create table tbl1(id int primary key, dt datetime default datetime('now'));
© Stack Overflow or respective owner