How to make an efficient check constraint for an e-mail field in Firebird (if field value not null)?
thanks, Wilfried
You could use the SIMILAR TO operator to test against regular expression pattern, something like
CHECK(emailfield SIMILAR TO '[[:ALNUM:]._%+-]+@[[:ALNUM:].-]+\.[[:ALPHA:]]+')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With