PB 连接 ORACLE 数据库

NorthStar21 2012-03-24 02:41:31
在连接数据库的代码中

SQLCA.DBParm ="DisableBind=1,StaticBind=1"
Connect Using SQLCA;

加上 DisableBind=1 和 StaticBind=1

作用是什么,是否会对服务器的ORACLE的运行速度有影响?
...全文
99 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DYFDWX 2012-03-26
  • 打赏
  • 举报
回复
SQLCA.DBParm ="DisableBind=1,StaticBind=1"
指的是sql变量绑定
例 select name from empid='03';
pb 会转为 select name from empid=:1;(或者是变量)
当你再查 select name from empid='05';时
oralce不会对你SQL语句再硬解析,直接软解析,返回想要的数据集
dawugui 2012-03-24
  • 打赏
  • 举报
回复
DisableBind=1
PowerBuilder does not bind input parameters to a compiled SQL statement.

StaticBind=1
(Default) Skip getting a result set description before retrieving data. You can also specify 'Yes' to set this value.

752

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧