Posted to tcl by crshults at Sat Nov 09 07:01:37 GMT 2013view raw

  1. package require sqlite3
  2. sqlite3 db test.sqlite
  3. db eval {CREATE TABLE t1(a int, b text)}
  4. db eval {INSERT INTO t1 VALUES (1, 'hello')}
  5. db eval {INSERT INTO t1 VALUES (2, 'goodbye')}
  6. db eval {SELECT * FROM t1}
  7. db eval {SELECT * FROM t1} values {parray values}
  8.