Quote:
|
Originally Posted by huyuhui
I don't understand the relations of BIND and DB2SQL92.
Is about dynamic SQL or static SQL?
The following statement:
1).db2 "SELECT empno,edLevel FROM employee"
2).DB2SQL92>SELECT empno,edLevel FROM employee
The two statements are all static SQL-statement,I think so.
I dont know why i got bad performance(such as CPU wait and Process Blocks) when i used DB2SQL92.
Is any way to turn the performance?
thanks a lot
|
In both cases this is dynamic SQL, not static, but DB2SQL92 is a program that has an associated bind file. I thought maybe it was pausing due to autobind, but that would only happen once.
They both eventually return a proper result set, right? Is the database local to where you're issuing the select?
The same query should generate the same access plan, especially a query as simple as that. A few things could impact it, ie. degree, optimization, but not typically for a straight select.
Anyone else have any ideas?
