I have a java program which inserts a list of store numbers with a unique ID called pilotID
into an Oracle database with the following syntax:
pilotDAO.insertPilotStores(pilotID, storeList);
storeList
is a List<String>
storing store numbers, and pilotID
is some integer like 101.
However, when the storelist
is more than 999 stores, I am getting a DB exception in Oracle:
Caused by:
java.sql.SQLException: ORA-24335: cannot support more than 1000 columns
The insert query which in use is
INSERT ALL
INTO eportal.pilot_store (pilot_id, store_nbr, last_updt_dt_tme) VALUES (96, 100, SYSDATE)
INTO eportal.pilot_store (pilot_id, store_nbr, last_updt_dt_tme) VALUES (96, 101, SYSDATE)
INTO eportal.pilot_store (pilot_id, store_nbr, last_updt_dt_tme) VALUES (96, 102, SYSDATE)
SELECT * FROM dual;
I am really stuck here. Any suggestions are welcome.
Thanks in advance
pooja