📜  python escape mysql 代码示例

📅  最后修改于: 2022-03-11 15:05:16.485000             🧑  作者: Mango

代码示例1
sql = "INSERT INTO TABLE_A (COL_A,COL_B) VALUES (%s, %s)"
cursor.execute(sql, (val1, val2))