我要在脚本里实现一个功能 那就是 如果这个查询为真或者有数据 那我就怎样的操作
我的代码在.sql文件里是:
if exists(1=1)
select “ok”;
可是一执行就出错 说是语法错误 信息如下
ERROR 1064 (42000): 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 *if exists(1=1) select "ok"* at line 1
不知道有没有朋友可以帮忙解答下!!! 万分感谢!!!
我的代码在.sql文件里是:
if exists(1=1)
select “ok”;
可是一执行就出错 说是语法错误 信息如下
ERROR 1064 (42000): 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 *if exists(1=1) select "ok"* at line 1
不知道有没有朋友可以帮忙解答下!!! 万分感谢!!!
