Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
candiddevmike
8mo ago
0 comments
Share
How do you handle trigger logic that compares old/new without having a round trip back to the application?
0 comments
default
newest
oldest
SoftTalker
8mo ago
Do it in a stored procedure not a trigger. Triggers have their place but a stored procedure is almost always better. Triggers can surprise you.
candiddevmike
OP
8mo ago
I don't follow how you would do that in a stored procedure outside of a trigger.
const_cast
8mo ago
I think instead of performing an INSERT you call a stored proc that does the insert and some extra stuff.
1 more reply
j
/
k
navigate · click thread line to collapse