#!/usr/bin/env python3 import sqlite3 conn = sqlite3.connect('database/kdrug.db') cur = conn.cursor() # herb_item_tags 테이블 구조 확인 cur.execute("PRAGMA table_info(herb_item_tags)") print("herb_item_tags 테이블 구조:") for row in cur.fetchall(): print(f" {row}") # 실제 테이블 목록 확인 cur.execute("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE 'herb%' ORDER BY name") print("\n약재 관련 테이블:") for row in cur.fetchall(): print(f" - {row[0]}") conn.close()