Select empno, sal from emptbl where empno < 101.By this
query can we fetch first 100 recs? where empno is primary
key.It won't throw -811 error? if it wont,then what is use
of cursor technique while fetching first 100 recs.
Please need more clarification.
Answer Posted / madhu t
If the to fetch empno and sal from emptble is written in
embedded sql then it will give sqlcode -811.
yes this query fetches first 100 records of employee table.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can one database have multiple instances?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?
How do I optimize a query in db2?
what is utility for parm lib
What is a Foreign Key?
What is the connection string to connect to the DB2 Database ?
What is a page in db2?
How to check table size in db2 sap?
What is coalesce in db2?
What do you mean by between and in? Is between inclusive of specified range values?
What db2 400?
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
Where do you specify them?
What is null indicator in db2?
How do you simulate the explain of an embedded sql statement in spufi/qmf?