From 3b5903a2e34bdc423458f698eb2265242830e600 Mon Sep 17 00:00:00 2001 From: xuesong Date: Thu, 5 Nov 2020 21:06:18 +0800 Subject: [PATCH] Update Assignment5.md --- Assignment5.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assignment5.md b/Assignment5.md index 0d14a17..df84ecd 100644 --- a/Assignment5.md +++ b/Assignment5.md @@ -134,15 +134,14 @@ conn = psycopg2.connect(database="dev", user="username", password="password", ho cur = conn.cursor() cur.execute("SELECT id, name, address, salary from COMPANY order by id") rows = cur.fetchall() -print ("ID\tNAME\tADDRESS\tSALARY") +print ("ID NAME ADDRESS SALARY") for row in rows: print (row[0], "\t", row[1], "\t", row[2], "\t", row[3]) conn.close() ``` - - +