I'm trying to add a check constraint on MySQL to only allow valid email addresses and from what I have already syntax appears to be: Alter Table book Add Constraint CheckEmail Check (email Like '%@%._%')
My table is book and it has a column called email that has the email addresses.
Other link seems to confirm this should be correct: TSQL Email Validation (without regex)
Does this look ok?
This executed correctly but after this I can add an entry 'h'. Any ideas what's wrong here?
I'm on mySQL 5.1.