#!/bin/bash
sqlite3 test.db "create table n (id INTEGER PRIMARY KEY,f DATA,l TEXT);"
sqlite3 test.db "insert into n (f,l) values ('autodate','sometext');"
sqlite3 test.db "select * from n";
CREATE TABLE test (
id INTEGER PRIMARY KEY AUTOINCREMENT,
s TEXT,
t TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO test(s) VALUES ('string');
SELECT * FROM test;