Thanks, you've both been very helpful.
And no, it's not possible to call a user defined function from a check constraint. After double checking the book, it only says 'functions can be called'. Guess it means only pre-defined Oracle functions.
Cheers!
Thanks for your response Terry,
I've now created a function that uses TO_NUMBER and am wondering; is it possible to call a user defined function in a check constraint, or can it only be done with a trigger?
I have one book that states it's possible (but doesn't give any examples) and one that...
Hello,
I'm currently using a VARCHAR2 datatype for a telephone number field so that I can keep leading zeros, and I'd like to add a check constraint to the column so that only numeric characters are entered.
Is this possible, and if so, how?
Thanks in advance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.