修正
This commit is contained in:
6
check_jl_cols.py
Normal file
6
check_jl_cols.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import psycopg2
|
||||
conn = psycopg2.connect(host='192.168.0.61', port=55432, dbname='njts_acct', user='njts_app', password='njts_app2025')
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT column_name FROM information_schema.columns WHERE table_name='journal_lines' ORDER BY ordinal_position")
|
||||
for r in cur.fetchall(): print(r[0])
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user