如何检查字符串是否仅包含SQL中的小写字符和数字
如何检查字符串是否仅包含小写字符,数字和SQL
IM中的符号“@”。
ALTER TABLE TABLE1
ADD CONSTRAINT c1
CHECK (
(R1 like '%[abcdefghijklmnobqrstuvwxyz@1234567890]%')
);
How to check if the string contains just lowercase characters, numbers and the symbol "@" in SQL
Im trying something like this:
ALTER TABLE TABLE1
ADD CONSTRAINT c1
CHECK (
(R1 like '%[abcdefghijklmnobqrstuvwxyz@1234567890]%')
);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该将检查约束列为“列不是具有 小写,数字或
@
符号:You should phrase the check constraint as the column not having any characters which are not lowercase, numbers, or the
@
symbol:尝试以下操作:
Try this: