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...

In db2, how do you insert multiple rows in 1 query using a.)
Cursors, b.) Normal query?? Give syntax for both.

Answer Posted / adi

MOVE +100 TO HV-NUM-ROWS.
INSERT INTO EMP
(EMPNO, LASTNAME, FIRSTNME,
MIDINIT, SALARY, BONUS)
VALUES (:HV-EMPNO-ARRAY,
:HV-LASTNAME-ARRAY,
:HV-SALARY-ARRAY,
:HV-BONUS-ARRAY)
FOR :HV-NUM-ROWS
ATOMIC

all array elements will have a 100 occur clause

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning concurrency in the db2 database?

1105


What is isolation level in db2?

991


what is diffrence b/w file-aid tool and file-aid utility???

4885


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

2206


What is runstats and reorg in db2?

1293


What is catalog database in db2?

1152


what is db2 restart?

2145


Explain about cursor stability?

1037


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

1073


My sql statement select avg(salary) from emp yields inaccurate results. Why?

1083


Why do we bind in db2?

1202


Why db2 is called db2?

1021


When do you specify the isolation level?

1022


How to compare data between two tables in db2?

1076


B37 abend during spufi?

1448