answersLogoWhite

0

triggers are fired automatically but we need to call functions. Triggers can b fired on update, insert command.

For example if there is field of phoneNumber. We need to validate phoneNumber on insert and update as characters are not allowed. So to VALIDATE phoneNumber there will be a function. And this will be called in a trigger so that if any updation or insertion is done it will automatically check phoneNumber.

Hope this is easy to understand

amit_0486@Yahoo.com

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: What is the difference between trigger and function?
Write your answer...
Submit
Still have questions?
magnify glass
imp