Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sqlite3
- coelho = sqlite3.connect("user='fnord'
- password='fnord' host='localhost' dbname='central'")
- cursor = coelho.execute('select * from cities limit 2')
- ---------------------------------------------------------------------------
- OperationalError Traceback (most recent call
- last)
- <ipython-input-10-ea5965b46673> in <module>()
- ----> 1 cursor = coelho.execute('select * from cities limit 2')
- OperationalError: no such table: cities
- import psycopg2
- coelho = psycopg2.connect("user='fnord'
- password='fnord' host='localhost' dbname='central'")
Add Comment
Please, Sign In to add comment