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

Ho to insert no. of records at a time..i mean i want to
insert 100 records at a time into a table

Answer Posted / selvaraj v

In oracle 10g :
---------------->

Step 1 : SQL> CREATE TABLE identity( ID NUMBER);

Step2 : Write a Simple Procedure for to insert values into
table.

DECLARE
i NUMBER;
BEGIN
FOR i IN 1..100 LOOP
INSERT INTO identity VALUES(i);
END LOOP;
END;
/
PL/SQL procedure successfully completed.

Step 3 : SELECT COUNT(*) FROM identity;

COUNT(*)
----------
100


Please check it. Works fine.



PL/SQL procedure successfully completed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by database schema and what does it hold?

1179


what is Single Byte Overhead...?

2500


What happens to the data files if a tablespace is dropped?

996


How to select some columns from a table in oracle?

1005


How index is implemented in oracle database?

945


What is set verify off in oracle?

1034


What is dual table oracle?

926


What is Virtual Private Database in Oracle?

1017


Explain the use of consistent option in exp command.

974


What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar

4482


Explain about functional dependency and its relation with table design?

954


How to write a left outer join with the where clause in oracle?

1027


What are the roles of dba?

1020


How do I find the database name in oracle?

981


Explain the use of grant option in exp command.

1006