读书人

PB + MYSQL,该怎么处理

发布时间: 2013-01-04 10:04:18 作者: rapoo

PB + MYSQL
开发环境:PB12 + MYSQL

Select count(*) Into :li_count From depament where parentcode=:s_code;

错误信息:database c0038:SQLSTATE = 37000[MySQL][ODBC 3.51 Driver][MYSQLD-5.1.51 - community] you have an error in your SQL syntax; check the manual that orresponds to your mysql server version for the right syntax to user near '*) from depamen where depament where parentcode = '" at line

感觉只要SQL中含有COUNT 就会出错!
[解决办法]
http://xznsoft.iteye.com/blog/85037

读书人网 >PB

热点推荐