From 8046fd8a9a99c62d6caa1502aa98da7ebd9e9fed Mon Sep 17 00:00:00 2001 From: Ryan Melvin <rmelvin@uabmc.edu> Date: Thu, 4 May 2023 16:38:11 -0500 Subject: [PATCH] simpler sample query --- db_test.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db_test.py b/db_test.py index 35b2855..568820e 100644 --- a/db_test.py +++ b/db_test.py @@ -48,11 +48,7 @@ if st.button("test"): return cur.fetchall() rows = run_query("SELECT TOP 2 * from DS_apps.dbo.test_table;") - run_query("""INSERT INTO DS_apps.dbo.test_table (name, age, city) - VALUES ('Emma Brown', 40, 'San Francisco'), - ('Oliver Davis', 25, 'Seattle'), - ('Sophia Wilson', 32, 'Austin'), - ('James Taylor', 45, 'Boston');""") + # Print results. for row in rows: st.write(f"{row[1]}") -- GitLab