Home » SQL & PL/SQL » SQL & PL/SQL » cursor (oracle 10g)
cursor [message #357858] |
Thu, 06 November 2008 23:16 |
ishika_20
Messages: 339 Registered: December 2006 Location: delhi
|
Senior Member |
|
|
Dear All,
i want to insert 1000 records at a time.
following is my script.
INSERT INTO PCOM_CODES ( PC_TYPE, PC_CODE, PC_MC_CODE, PC_MAST_DEF_CODE, PC_DESC, PC_DESC_BL,
PC_SHORT_DESC, PC_SHORT_DESC_BL, PC_LONG_DESC, PC_LONG_DESC_BL, PC_CODE_BY_CLASS_YN, PC_CLASS_CODE,
PC_VALUE, PC_FLEX_01, PC_FLEX_02, PC_FLEX_03, PC_FLEX_04, PC_FLEX_05, PC_EFF_FM_DT, PC_EFF_TO_DT,
PC_CR_UID, PC_CR_DT, PC_UPD_UID, PC_UPD_DT, PC_FLEX_06, PC_FLEX_07, PC_FLEX_08, PC_FLEX_09,
PC_FLEX_10 ) VALUES (
'VEHI_CC', '5701', '01', 'VEHI_CC', '5701', '5701', '5701', '5701', '5701', '5701'
, '0', '10', '01', NULL, NULL, NULL, NULL, NULL, TO_Date( '01/01/2001 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
, TO_Date( '01/01/2025 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 'MEA', TO_Date( '01/01/2001 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM')
, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
i want to enter values range from 5701 to 6500.
how can i insert at a time?
please provide me help
Thanks
[mod-edit] removed font for the visually impaired.
[Updated on: Fri, 07 November 2008 08:00] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: cursor [message #357867 is a reply to message #357865] |
Thu, 06 November 2008 23:44 |
ishika_20
Messages: 339 Registered: December 2006 Location: delhi
|
Senior Member |
|
|
instead of running each insert command, i want to insert at a time 5701 to 6500(ie: 799 rows )
how can i run through cursor?
hope cursor will work here.
|
|
|
|
Goto Forum:
Current Time: Fri Dec 06 15:22:18 CST 2024
|