TSQL Email Validation (without regex)

后端 未结 9 729
-上瘾入骨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:38

    This is the easiest way to select them.

    Use this query

    SELECT * FROM  WHERE [EMail] NOT LIKE '%_@__%.__%'
    

提交回复
热议问题