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


Please Help Members By Posting Answers For Below Questions

What is concurrency?

709


What is ibm db2 used for?

598


What is the connection string to connect to the DB2 Database ?

612


What is the physical storage length of date data type?

722


Is the primary key a clustered index?

607






What is universal database?

617


What is a db2 tablespace?

595


What are packages in db2?

593


What is ibm db2 client?

517


How does cobol compile db2 program?

606


What is the use of reorg in db2?

602


What is image copy in db2?

564


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

639


Are views updateable?

640


What is dbrm? When it will be created?

594