python sqlite3输入多个sql语句

2022-05-08

以下示例是关于Python中包含python sqlite3输入多个sql语句用法的示例代码,想了解python sqlite3输入多个sql语句的具体用法?python sqlite3输入多个sql语句怎么用?python sqlite3输入多个sql语句使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:python sqlite3 input multiple sql statement源码类型:Python
import sqlite3
conn = sqlite3.connect('test.sqlite')
cur = conn.cursor()
cur.executescript('''YOUR SQL CODE HERE''')

cur.close()

本文地址:https://www.itbaoku.cn/snippets/785538.html