Guest User

Untitled

a guest
Oct 17th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import sqlite3
  2. coelho = sqlite3.connect("user='fnord'
  3. password='fnord' host='localhost' dbname='central'")
  4.  
  5. cursor = coelho.execute('select * from cities limit 2')
  6.  
  7. ---------------------------------------------------------------------------
  8. OperationalError Traceback (most recent call
  9. last)
  10. <ipython-input-10-ea5965b46673> in <module>()
  11. ----> 1 cursor = coelho.execute('select * from cities limit 2')
  12.  
  13. OperationalError: no such table: cities
  14.  
  15. import psycopg2
  16. coelho = psycopg2.connect("user='fnord'
  17. password='fnord' host='localhost' dbname='central'")
Add Comment
Please, Sign In to add comment