遇到的错误:
long ll_count // Profile mysql SQLCA.DBMS = "JDBC" SQLCA.LogPass = "123" SQLCA.LogId = "root" SQLCA.AutoCommit = False SQLCA.DBParm = "Driver='com.mysql.jdbc.Driver',URL='jdbc:mysql://localhost:3306/his' " connect using sqlca; select count(*) into :ll_count from yk_cddz;
很简单的一条语句,竟然报错了!
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 '*) from yk_cddz' at line 1
找了百度没有人写个贴子,于是查看MYSQL的使用手册,终于在
Powerbuilder中的设置
string sql long ll_count sql = "SET sql_mode = 'IGNORE_SPACE' " EXECUTE IMMEDIATE :sql ; select count(*) into :ll_count from yk_cddz;
Copyright © 2019- oram.cn 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务