Updata2
This commit is contained in:
9
tmp/list_dwd_tables.py
Normal file
9
tmp/list_dwd_tables.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import psycopg2
|
||||
DSN = 'postgresql://local-Python:Neo-local-1991125@100.64.0.4:5432/LLZQ-test'
|
||||
conn = psycopg2.connect(DSN)
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT table_name FROM information_schema.tables WHERE table_schema = 'billiards_dwd' ORDER BY table_name")
|
||||
for r in cur.fetchall():
|
||||
print(r[0])
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user