开发环境: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