Simple question here: I like to know if a constraint in a oracle database is nothing else like a trigger.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Constraints in Oracle are at a much lower core level than triggers. They are implemented within the engine in C or C++, certainly not in PL/SQL. In addition, they have the added benefit of being included in the database dictionary, providing metadata about what’s expected of the data.
Generally speaking, if you are attempting to validate data, it is best to use constraints. Triggers have their uses, but often they are overused for the purpose of “constraints”.