powerbuilder中使用jdbc连接mysql
遇到的错误:
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中的设置
<span style="font-size:18px;">string sql long ll_count sql = "SET sql_mode = 'IGNORE_SPACE' " EXECUTE IMMEDIATE :sql ; select count(*) into :ll_count from yk_cddz;</span>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号