Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: INSERT SELECT support #318

Open
azurre opened this issue Aug 16, 2021 · 0 comments
Open

Feature request: INSERT SELECT support #318

azurre opened this issue Aug 16, 2021 · 0 comments

Comments

@azurre
Copy link
Contributor

azurre commented Aug 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants