xinn2003 发表于 2015-11-12 21:23

还是看不出哪里错误,谢谢了各位帮忙看看。

use test1
go
if rls in(select name from teacher where age=22)
printas '任老师年龄22岁'
ELSE
printas '任老师年龄不是22岁'
提示错误如下:

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 'go
if rls in(select name from teacher where age=22)
printas '任老师年' at line 2

xinn2003 发表于 2015-11-16 18:21

各位,这个是什么错误呀。。
页: [1]
查看完整版本: 还是看不出哪里错误,谢谢了各位帮忙看看。