This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RequestCounter/db/t.py
T
2022-02-05 16:45:35 +08:00

17 lines
384 B
Python

#!/usr/bin/env python3
# -- coding:utf-8 --
# @Author: markushammered@gmail.com
# @Development Tool: PyCharm
# @Create Time: 2022/2/5
# @File Name: t.py
import sqlite3
conn = sqlite3.connect('data.db')
cursor = conn.cursor()
cursor.execute('select * from ReqCount')
print(cursor.fetchall())
cursor.execute('update ReqCount set times=99999998 where name="MarkusJoe"')
conn.commit()