Search
Setup for Free
DT
Drizzle Team
•
3y ago
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,794
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
Insert IF NOT EXISTS
DT
Drizzle Team / help
14mo ago
Insert row, on conflict do nothing, and "return the conflicted row if it exists" - in 1 query?
DT
Drizzle Team / help
14mo 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
11mo ago