Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
candiddevmike
11mo ago
0 comments
Save
Share
How do you handle trigger logic that compares old/new without having a round trip back to the application?
0 comments
3 comments · 1 top-level
top
newest
oldest
SoftTalker
11mo ago
· 2 in thread
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
11mo ago
I don't follow how you would do that in a stored procedure outside of a trigger.
const_cast
11mo 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