Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 这个检查约束意味着什么(不是像';%[^-0-9A-Z./&;$!]%';那样的[存在代码])_Sql Server_Tsql_Check Constraints - Fatal编程技术网

Sql server 这个检查约束意味着什么(不是像';%[^-0-9A-Z./&;$!]%';那样的[存在代码])

Sql server 这个检查约束意味着什么(不是像';%[^-0-9A-Z./&;$!]%';那样的[存在代码]),sql-server,tsql,check-constraints,Sql Server,Tsql,Check Constraints,此检查约束定义是什么意思 (NOT [EXIST_code] like '%[^-0-9A-Z_/&$!]%') 行动: NOT LIKE 在SQL中,用于varchar类型的列。通常,它与%一起使用,后者用于表示任何字符串值,包括空字符\0 可能需要了解您的正则表达式,并查看如何基于其异常检索数据:) 正则表达式表示: 匹配以下列表中不存在的单个字符[^-0-9A-Z!/&$!]: - matches the character - literally (case sensi

此检查约束定义是什么意思

(NOT [EXIST_code] like '%[^-0-9A-Z_/&$!]%')
行动:

  NOT LIKE 
在SQL中,用于varchar类型的列。通常,它与%一起使用,后者用于表示任何字符串值,包括空字符\0

可能需要了解您的正则表达式,并查看如何基于其异常检索数据:)

正则表达式表示:

匹配以下列表中不存在的单个字符[^-0-9A-Z!/&$!]:

- matches the character - literally (case sensitive)
0-9 a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
A-Z a single character in the range between A (index 65) and Z (index 90) (case sensitive)
_/&$! matches a single character in the list _/&$! (case sensitive)

是的,我不明白正则表达式是什么意思这很有帮助,搜索不同正则表达式的基本知识总是一个好主意:)它实际上不是一个正则表达式,它是一个特殊的
类似于
模式匹配语法(看起来像一个正则表达式)