Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 24th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SQLight 3: append table
  2. col1 col2 col3 col4
  3. a11  a12  a13  -
  4.      ...
  5. aN1  aN2  aN3  -
  6. -    b11  b12  b13
  7. -         ...
  8. -    bM1  bM2  bM3
  9.        
  10. example=sqlite3.connect('your_database_name.db')
  11. cursor=example.cursor()
  12. cursor.execute('ALTER TABLE your_table_name ADD COLUMN your_data TEXT')