|
@@ -1,10 +1,10 @@
|
|
|
import psycopg2
|
|
|
|
|
|
-conn = psycopg2.connect("host=myHost dbname=myDB user=xxx password=yyy")
|
|
|
+conn = psycopg2.connect("host=appli-pfe.ec-nantes.fr dbname=app_bdonn_01 user=app2_01 password=osiris")
|
|
|
|
|
|
cursor = conn.cursor()
|
|
|
|
|
|
-cursor.execute("SELECT * from person")
|
|
|
+cursor.execute("SELECT * from Product")
|
|
|
|
|
|
rows = cursor.fetchall()
|
|
|
|
|
@@ -12,4 +12,4 @@ for row in rows:
|
|
|
print(row)
|
|
|
|
|
|
cursor.close()
|
|
|
-conn.close()
|
|
|
+conn.close()
|