Jump to content
Server Maintenance This Week. ×

Inserting multiple rows in a single query


This topic is 3689 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Is there a way to do something like this with the filemaker php api?

 

        INSERT INTO Table ( Column1, Column2 ) VALUES
        ( Value1, Value2 ), ( Value1, Value2 )

 

I know I could do something like this but I have to insert 37000 records and I would prefer not to make 37000 commits:

 

                $valuesArray = array('Name' => 'Robin', 'Year' => 2011, 'Week' => '6/5/2011')
                $rec = $fm->createRecord('web_layout'; $valuesArray);
                $result = $rec->commit();

 

Any ideas? Thank you!

Link to comment
Share on other sites

This topic is 3689 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.