fluentpdo icon indicating copy to clipboard operation
fluentpdo copied to clipboard

Feature request: INSERT SELECT support

Open azurre opened this issue 4 years ago • 0 comments

Hello,

It will be great to be able run INSERT SELECT queries like:

$select = $fpdo->from('table1')->select(['id', 'name', 'date'], true)->where('some',  'any');
$fpdo->insertInto('table2')->values($select, ['t_id', 't_name', 't_date'])

And get INSERT INTO table2 ('t_id', 't_name', 't_date') SELECT id, name, date FROM table1 WHERE some = ?

azurre avatar Aug 16 '21 17:08 azurre