Hope someone can help me. I want to add many records into a table from a statement I build. For example:
ProjectSQL = "INSERT ALL "
For each Proj in split(Request.Form("ShowProjects"))
ProjectSQL = ProjectSQL & " INTO proj_tbl (proj_id) VALUES ('" & Proj & "') "
Next
db.Execute ProjectSQL
The SQL is:
INSERT ALL
INTO proj_tbl (proj_id) VALUES ('45)
INTO proj_tbl (proj_id) VALUES ('56)
INTO proj_tbl (proj_id) VALUES ('92)
Oracle SQL wants a Select statement at the end.
I don't want to hammer the database with each loop because there could be many records to add (and the dba will cut off my balls).
Can someone tell me how to do this?
Thanks.