#!/usr/bin/env python3
"""
查看数据库中的所有表
"""
import sqlite3

# 数据库路径
db_path = "\\\\ll\\D\\wxvddata\\dpd.db"

try:
    # 连接数据库
    conn = sqlite3.connect(db_path)
    cursor = conn.cursor()
    
    # 查询所有表
    print("数据库中的所有表:")
    cursor.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
    tables = cursor.fetchall()
    
    for table in tables:
        print(f"  - {table[0]}")
    
    # 关闭连接
    conn.close()
    
except Exception as e:
    print(f"错误: {e}")
