Skip to navigation
Example of a select with python and postgresql
12.07.16
#config from config.ini import psycopg2 conn = psycopg2.connect("host=%s dbname=%s user=%s password=%s" % (config['postgres']['host'],config['postgres']['database'],config['postgres']['user'],config['postgres']['password'])) cur = self.conn.cursor() cur.execute("SELECT * FROM short_price_bulk;") c = cur.fetchall() for i in c: print(i)
http://initd.org/psycopg/
Reply
Anonymous
Information Epoch 1732620715
Allow the user to tailor the environment.
Home
Notebook
Contact us