Hi...
I'm trying to figure out a way to insert multiple records into a table with a single SQL statment.
Basically what I have is a table with users like so:
0 || Bob || bob@aol.com || active
I want to be able to use a FORM to insert more than one user record into the table at a time.
Is there a variance of the LOOP function I can use for this? Or is it more complex than that?
AFAIK, with MySQL, you can comma delimit the values. ie.
INSERT INTO table (field1, field2) VALUES ('value1','value2'), ('value3','value4'), ('value5','value6')
Thanks... that was it. Worked like a charm. 🙂