You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
419 B

  1. import sqlite3
  2. con = sqlite3.connect(":memory:")
  3. cur = con.cursor()
  4. cur.executescript("""
  5. create table person(
  6. firstname,
  7. lastname,
  8. age
  9. );
  10. create table book(
  11. title,
  12. author,
  13. published
  14. );
  15. insert into book(title, author, published)
  16. values (
  17. 'Dirk Gently''s Holistic Detective Agency',
  18. 'Douglas Adams',
  19. 1987
  20. );
  21. """)