""" sql_list_tables.py usage: python3 sql_list_tables.py list all tables in the sqlite database Developed by Prof. Xin Yuan at Florida State University for COP4521 to practice SQL """ # display_table.py import sqlite3 conn = sqlite3.connect('./sql_demo.db') cur = conn.cursor() cmd = "SELECT * FROM sqlite_master WHERE type = 'table';" for rows in cur.execute(cmd): print(rows) conn.close()