Files
baiyue-logistics-chat/add_test.py
T

8 lines
459 B
Python
Raw Normal View History

import sqlite3
c = sqlite3.connect('history.db')
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13800138000','YT20261028001','运输中','2026-10-28')")
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13800138000','YT20261028002','派送中','2026-10-27')")
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13900139000','YT20261028003','已签收','2026-10-26')")
c.commit()
print("ok")