Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Powerbuilder and DisableBind=1
Hi Kevin,
When you see the sql statement in SQLPreview event, you may find the sql statement like the following:
UPDATE your_table SET col_1 = :1, col_3 = :2, col_6 = :3
This statement is prepared by using row status and item status of the first
modified rows in this datawindow. This statement will be used by the following
modified rows. Could you
see the problem?
Suppose a user is modifying the first, the second, and the third row in a datawindow. The user changed the following rows and columns:
1st row -> column 1, column 3, column 6 2nd row -> column 1, column 3, column 6 3rd row -> column 1, column 3, column 6
Then the above sql statement can be applied efficiently. But when the user changed the following rows and columns:
1st row -> column 1, column 3, column 6 2nd row -> column 2, column 4, column 7 3rd row -> column 3, column 4, column 5
The above sql statement cannot be used. Because PB will generate the same statement for all three modified rows:
UPDATE your_table SET column_1 = :1, column_3 = :2, column_6 = :3
DisableBind will force PB to prepare individual sql statement for each modified
rows to solve the problem. Hope this can help you.
--
Best Regards,
Reid Lai <reidlai_at_hk.super.net>
Oracle 7.3 Certified Database Administrator (OCP)
![]() |
![]() |