Hi,
I am new to F3. Reading the DB notes about transactions I came across this statement:
$db->exec(
array(
'DELETE FROM diet WHERE food="cola"',
'INSERT INTO diet (food) VALUES ("carrot")',
'SELECT * FROM diet'
)
);
I was wondering if instead I could write the same statement in one single string as:
$db->exec('
DELETE FROM diet WHERE food="cola";
INSERT INTO diet (food) VALUES ("carrot");
SELECT * FROM diet;'
);
This would make it easier to copy multiple statements from a SQL file or to paste and test them on Toad.
Thanks!
Fed