Skip to content

Feature request: INSERT SELECT support #318

@azurre

Description

@azurre

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 = ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions