Example of user-defined integrity rule in database systems?

Posted by Pavel on Stack Overflow See other posts from Stack Overflow or by Pavel
Published on 2011-01-15T12:59:57Z Indexed on 2011/01/16 2:53 UTC
Read the original article Hit count: 174

Hey everyone. I'm currently preparing for my exams and would like to know some examples of user-defined integrity rule in database systems. As far as I understand, it means that I can set up certain conditions for the columns and when data is inserted it needs to fulfill these conditions.

For example: if I set up a rule that an ID needs to consist of 5 integers ONLY then when I insert a row with ID which is made up of integers and some chars then it won't accept it and return an error.

Could someone confirm and give me some opinion on that? Thank you very much in advance!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about Oracle