Skip to content
Snippets Groups Projects
Commit 8046fd8a authored by Ryan Melvin's avatar Ryan Melvin
Browse files

simpler sample query

parent 99defba2
No related branches found
No related tags found
1 merge request!2Docker db secrets
...@@ -48,11 +48,7 @@ if st.button("test"): ...@@ -48,11 +48,7 @@ if st.button("test"):
return cur.fetchall() return cur.fetchall()
rows = run_query("SELECT TOP 2 * from DS_apps.dbo.test_table;") 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. # Print results.
for row in rows: for row in rows:
st.write(f"{row[1]}") st.write(f"{row[1]}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment