INSERT INTO `table1`
SET `field1` = 'value1',
`field2` = 'value2',
`field3` = 'value3';
INSERT INTO `table2`
SET id = (SELECT LAST_INSERT_ID()),
`field` = 'value';
我想要使用DB::query(Database::IN
我想實現這個查詢與ORM查詢生成器: SELECT * FROM `products`
GROUP BY CASE `products`.`configurable`
WHEN 'yes' THEN `products`.`id_configuration`
ELSE `products`.`id`
END
我知道這個工程: $products = DB::query(Database