Simple question on arrays and sql



Given that I have a 2D array in php, is there a sql syntax to insert the entire array at once?

For example if I retrieve a set of data from one table in the database with keys A, B and C, and suppose there are 100 records, and I build an array $arr consisting of

$arr[$i]['A'], $arr[$i]['B'], and $arr[$i]['C']

where $i goes from 0 to 99,

is there a syntax to insert the entire $arr array at one time into fields A, B, and C of a new table?

I really would like to avoid having 100 sql insert calls.
BTW, this is for an Oracle DB.

In the past I have only had to insert a few records at a time, so i simply did multiple inserts. Of course for Oracle I could do the same and only do a commit after all are done.
.



Relevant Pages

  • Re: Help with sql syntax in asp
    ... > I really struggle with SQL syntax when using VBscript asp. ... > ContactID is an Integer held in the rsContacts array. ... You have an array named "rsContactID"? ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)
  • Re: COunting database entries
    ... Or put teh table results in an array and count them that way with PHP. ... that SQL syntax may not be correct, but I think it's close, ... The database records your info. ...
    (alt.php)
  • Question on displaying repeating data
    ... I am developing a financial application that tracks various aspects of the stock and financial markets. ... I obvisously don't know the SQL syntax here, but I think the meaning is clear. ... How can I set up what I imagine is basically an array or table to display the data? ...
    (microsoft.public.access.forms)
  • Re: Table open times and rowsize discontinuity
    ... some manner related to ADO or the tool you are using. ... Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text - ... For the array fetching, the only parameter I can find in the ADO ... exceeding the SDU and the MTU. ...
    (comp.databases.oracle.misc)
  • Re: Import large CSV file data into Oracle Table
    ... Database: Oracle 10g ... into Oracle Table using a Bulk Insert. ... I would also recommend BufferedStream class to minimize hits to ... ArrayBindSize to the size of the array. ...
    (microsoft.public.dotnet.languages.csharp)