#!/usr/bin/env python3
"""
查询adid=8096的标题信息
"""
import sqlite3

db_path = "\\\\ll\\D\\xtrssvjj\\dpd.db"

try:
    conn = sqlite3.connect(db_path)
    cursor = conn.cursor()

    # 查询adid=8096的标题
    cursor.execute("SELECT name FROM ads WHERE rowid = 8096")
    result = cursor.fetchone()

    if result:
        title = result[0]
        print(f"adid=8096 的标题:")
        print(f"  {title}")
    else:
        print("未找到adid=8096的记录")

    conn.close()

except Exception as e:
    print(f"错误: {e}")
