I have the following table:
Table Account{
[...]
email varchar(100),
[...]
}
and a corresponding regular expression:
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
How can I use the MySQL model, to link the regular expression to the the data-field "email", so that the regex is accessible to read out through php as well as a trigger or even better, in a kind of constraint?
I want to define this directly using MySQL workbench, so a separate table won't work for me.