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 is a snapshot in oracle database?

1021


can anyody please send me the dump for Oracle 10g certifications for DBA path?

2118


What is a cursor and what are the steps need to be taken?

1198


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2620


What is a static data dictionary in oracle?

1108


What is transport network substrate (tns) in oracle?

1041


How many types of table in Oracle?

1119


How to drop an index in oracle?

1069


What is index in Oracle?

1070


IS it possible to built the oracle database without setting the kernal parameters?

2346


How to view the data files in the current database?

1094


How would you change old and new values in an insert, delete and update triggers?

1018


How to run queries on external tables?

1043


How to create id with auto_increment on oracle?

986


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

2256