How to use variables in SQL statements in Python?
P粉200138510
P粉200138510 2023-08-20 17:35:10
0
2
356
<p>I have the following Python code: </p> <pre class="brush:py;toolbar:false;">cursor.execute("INSERT INTO table VALUES var1, var2, var3,") </pre> <p>Where <code>var1</code> is an integer, <code>var2</code> and <code>var3</code> are strings. </p> <p>How do I write variable names in Python without them being included in the query text? </p>
P粉200138510
P粉200138510

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!