Lets say we have v1, v2, v3 and v4 values of which, v1 and v2 are to be inserted into table t1; v3 and v4 into table t2.
we can usually do that using:
INSERT INTO t1 VALUES(v1,v2) INSERT INTO t2 VALUES(v3,v4) However, if we want to do that in a single statement?
something like INSERT INTO t1 VALUES(v1,v2), t2 VALUES(v3,v4)
someone asked me to use transactions to achieve that, but i don't know if that works for MyISAM.
I am using MySql database.