通过pymysql添加一个表名待定的表
se_name通过函数参数传入
cur.execute(
"CREATE TABLE %s(a SMALLINT PRIMARY KEY),(se_name))
报错
pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' ' ExamRes_1716'(a SMALLINT PRIMARY KEY)' at line 1")
请问如何去除%s产生的一对单引号?谢谢