这个检查约束定义是什么意思?
(NOT [EXIST_code] like '%[^-0-9A-Z_/&$!]%')
操作:
NOT LIKE
在 SQL 中用于类型为 varchar 的列。通常,它与 % 一起使用,用于表示任何字符串值,包括空字符 \0。
可能必须了解您的正则表达式,并查看如何根据异常:)检索数据
正则表达式 expr 表示这一点:
匹配下面列表中不存在的单个字符 [^-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)