First thing first is create a new trigger function inside a schema. Please follow the step frow below pictures
Then put the trigger function name :
Then put the code as shown below
Next.....
Let's choose a table to trigger our trigger function. In this post I chose akatsuki_users. So inside of akatsuki_users just right click the Triggers menu and choose "Create --> Trigger" :
Then put a trigger name :
Choose trigger function from dropdown list :
Specify the trigger event :
The last step is hit SAVE button... and doneee.... yeeeei.....
Next... Let's try it.....
And because this trigger is fired when INSERT and UPDATE sooo let's try to insert something to akatsuki_users :
Coool... So from INSERT and UPDATE we can see that our trigger function is successfully triggered...
thank you����
ReplyDelete