相关文章推荐
小百科
›
python sqlite 查询表的字段名 列名 - you Richer
sqlite
python
紧张的火龙果
2 年前
cur = db.cursor()
cur.execute(
"select * from table"
)
col_name_list = [tuple[
0
]
for
tuple
in
cur.description]
print
col_name_list
获得所有列名:
推荐文章