your MySQL server version for the right syntax to use near 'NULL' at line 1
来源:互联网 发布:大连知行小学电话 编辑:程序博客网 时间:2024/06/05 15:13
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 ‘NULL’ at line 1
今天使用mysql事件执行一段程序, set @deletesql =CONCAT('DELETE from classuserorder',' where a=',a); PREPARE stmt FROM @deletesql; EXECUTE stmt ; DEALLOCATE PREPARE stmt; 老是报异常,看错误应该是sql中有null,应该是concat拼接null后结果@deletesql为null,导致报错,对参数a做下判断即可
0 0
- your MySQL server version for the right syntax to use near 'NULL' at line 1
- MySQL server version for the right syntax to use near 'type=InnoDB' at line 1
- MySQL server version for the right syntax to use near '-1.stu stu0_' at line 1
- MySQL server version for the right syntax to use near ';) T' at line 7
- MySQL server version for the right syntax to use near 'type = InnoDB' at line 25
- MySQL server version for the right syntax to use near 'info where info.stu_id = 1' at line 1
- MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
- hibernate自动键表报MySQL server version for the right syntax to use near 'type=InnoDB' at line 1
- hibernate自动键表报MySQL server version for the right syntax to use near 'type=InnoDB' at line 7
- You have an error MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 20
- corresponds to your MySQL server version for the right syntax to use near错误原因之一
- your MySQL server version for the right syntax to use near 'UNION '
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'cre
- check the manual that corresponds to your MySQL server version for the right syntax to use near '..'
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'oiw
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'USI
- check the manual that corresponds to your MySQL server version for the right syntax to use near '?,?
- heck the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTI
- 欢迎使用CSDN-markdown编辑器
- Ubuntu 16 Install virtualbox-5.1
- AdaBoost
- 欢迎使用CSDN-markdown编辑器
- mysql 源码学习笔记:mysqld启动流程
- your MySQL server version for the right syntax to use near 'NULL' at line 1
- Remove duplicate elements in an array
- LintCode1:A+B问题
- 在ubuntu 16.04上编译Android 源码
- 简单理解php的socket编程
- 最近接触到的新的名词
- 练习
- BZOJ 2179 [FFT]
- 浏览器中的汉字请求