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
What is the difference between truncate & delete command?
How to create a new tablespace in oracle?
What is oracle instant client?
How to upsert (update or insert into a table)?
What are the original export and import utilities?
what is dynamic SGA and static SGA
Can you assign multiple query result rows to a variable?
What is rowid and rownum in oracle?
Please explain drop constraint oracle?
How view is different from a table?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
How to create a temporary table in oracle?
What would you do with an in-doubt distributed transaction?
What is the difference between hot backup and cold backup in oracle?
What the is the diff between local index and global index. give some example.