Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how can i delete if row exists (where eq(xxx)), otherwise insert, in one query? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
23 replies
paaradiso
how can i delete if row exists (where eq(xxx)), otherwise insert, in one query?
would i have to use raw sql
& an if
/else statement
?
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
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Insert IF NOT EXISTS
DT
Drizzle Team / help
16mo ago
Insert row, on conflict do nothing, and "return the conflicted row if it exists" - in 1 query?
DT
Drizzle Team / help
15mo ago
How to check if a row exists in Drizzle?
DT
Drizzle Team / help
3y ago
error: relation "xxx" already exists
DT
Drizzle Team / help
13mo ago