Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Conditional insert - Drizzle Team
DT
Drizzle Team
•
3y ago
•
4 replies
Elv
Conditional insert
Hi
,
Is there a way to do an
insert
insert
only if the result of an
exists
exists
statement is
true
true
?
I would like to do it in one query instead of having to check with another query before the insert
.
Thanks
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
conditional columns
DT
Drizzle Team / help
14mo ago
Conditional join
DT
Drizzle Team / help
2y ago
Conditional findFirst
DT
Drizzle Team / help
3y ago
Placeholders in inserting: db.insert().values(placeholder('example'))
DT
Drizzle Team / help
3y ago