Home > Database > Mysql Tutorial > mysql Error Code: 1243. Unknown prepared statement handler

mysql Error Code: 1243. Unknown prepared statement handler

WBOY
Release: 2016-06-07 15:01:43
Original
3119 people have browsed it

前些年前在北京遇到一个朋友,他说人在社会上跑, 那些经验啊人事啊无非就是四个字 见多识广 我深有同感 写sql时有时需要考虑表不存在的操作 所以我加上了 DECLARE CONTINUE HANDLER FOR 1146 BEGINEND;/*处理表不存在异常*/ 然后就遇到了这样一个问题: Error

前些年前在北京遇到一个朋友,他说人在社会上跑, 那些经验啊人事啊无非就是四个字  "见多识广"  我深有同感
Copy after login

 

写sql时有时需要考虑表不存在的操作 所以我加上了

 

DECLARE CONTINUE HANDLER FOR 1146 
		BEGIN
		END;		/*处理表不存在异常*/
Copy after login


然后就遇到了这样一个问题:

mysql  Error Code: 1243. Unknown prepared statement handler

Error Code: 1243. Unknown prepared statement handler (stmt) given to EXECUTE

报这个错  肯定就是与动态sql有关 准确说是动态sql报错了

最后查证 确实是表出了问题

 

如果不加表不存在异常就会报如下错误:

Error Code: 1146. Table 'test.table1' doesn't exist

 


 

见识一种新的错误  以后就知道该怎么办了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template