Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between normal select query and
currosor

Answers were Sorted based on User's Feedback



what is the difference between normal select query and currosor..

Answer / jagan

using select in embedded sql with where clause should fetch
only one row , but cursor can be used when we need more rows
to be retrieved one at a time.

In case more than one row is retrieved in a select clause it
will throw -811 sql error.

Is This Answer Correct ?    28 Yes 5 No

what is the difference between normal select query and currosor..

Answer / vinay srivastava

Normal select Query fetches all rows in one go while cursor
fetches one row at a time.

Is This Answer Correct ?    10 Yes 17 No

Post New Answer

More DB2 Interview Questions

quary for 1> fetch last record 2> fetch in reverse order 3> fetch last 5 row 4> fetch second last record (their is no primary key) i think concept of count can be use for this in 4th

5 Answers  


if any of the column names is provided wrong, where do you get the error(during precompilation or during Bind)

3 Answers  


What are the uses of db2 optimizer?

0 Answers  


What is a NULL value? What are the pros and cons of using NULLS?

2 Answers  


Where do you specify them?

0 Answers  


can any one expalin check point with an example?

1 Answers  


How Plan is created while executing the query using SPUFI?

3 Answers  


Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?

1 Answers   UST,


What is database reorganization?

0 Answers  


how 2 resolve the -311 sqlcode

1 Answers  


What are the various locking levels available?

3 Answers  


wht steps we need will coding cobol and db2 pgm ?

6 Answers   CGI,


Categories