Connecting Tech Pros Worldwide Forums | Help | Site Map

Need help with triggers

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 11 '07
Hi everybody!
How to write a trigger, to increment a field (numeric type)
even if the user cannot modify anything in dbase?

Newbie
 
Join Date: Jul 2007
Posts: 2
#2: Jul 11 '07

re: Need help with triggers


Quote:

Originally Posted by tyan

Hi everybody!
How to write a trigger, to increment a field (numeric type)
even if the user cannot modify anything in dbase?

I want to create a counter, but i can't do this in application
because of login role properties
Moderator
 
Join Date: Nov 2006
Location: Boston, USA
Posts: 505
#3: Jul 14 '07

re: Need help with triggers


Look at the CREATE FUNCTION man page.
"SECURITY DEFINER" allows a function to be executed with the privileges of the creator, rather then the person who invokes it.
I would try this in your situation.
Reply