This commit is contained in:
admin
2026-01-21 10:58:19 +09:00
parent 8a00de8f03
commit 86020ada5c
36 changed files with 3417 additions and 363 deletions

View File

@@ -0,0 +1,25 @@
import psycopg
conn = psycopg.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, data_type
FROM information_schema.columns
WHERE table_name = 'insurance_rates'
ORDER BY ordinal_position
""")
rows = cur.fetchall()
print('insurance_ratesテーブルのカラム:')
for r in rows:
print(f' {r[0]}: {r[1]}')
cur.close()
conn.close()