pymysql 执行报错,大佬们帮忙看看
資深大佬 : gyy028012 0
使用 pymysql 的 execute 方法执行 SQL 语句
SQL 语句如下:
SET @days := 10;
SELECT @days as ‘days’;
报语法错误
(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 ‘SELECT @days AS ‘days” at line 4″)
这个 SQL 语句在 navicat 上是可以执行的
有大佬帮忙指点迷津吗
大佬有話說 (3)