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]: Allow for select statement in insert values clause #2330

Open
DanielBaulig opened this issue May 15, 2024 · 1 comment
Open

[FEATURE]: Allow for select statement in insert values clause #2330

DanielBaulig opened this issue May 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DanielBaulig
Copy link

Describe what you want

Maybe I am doing something wrong, but it doesn't appear to be possible to pass a select statement to the values clause of an insert statement like follows

db.insert(table).values(db.select().from(otherTable).where(condition));

Obviously assuming that otherTable's schema sufficiently matches to populate rows in table.

This seems like such an obvious feature that I am suspecting it's possible and I'm just not calling it correctly.

@DanielBaulig DanielBaulig added the enhancement New feature or request label May 15, 2024
@DanielBaulig
Copy link
Author

See #1605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant