TSQL Email Validation (without regex)

后端 未结 9 747
-上瘾入骨i
-上瘾入骨i 2020-11-27 17:00

Ok, there are a million regexes out there for validating an email address, but how about some basic email validation that can be integrated into a TSQL query for Sql Server

9条回答
  •  情书的邮戳
    2020-11-27 17:35

    From Tomalak's slelect

    select 1
    where @email not like '%[^a-z,0-9,@,.]%'
    and @email like '%_@_%_.__%'
    

提交回复
热议问题