标签:复杂 declare code event lap server 大小写 blocks src
昨晚有实现一个小功能,就是在MS SQL Server中,检查字符串是否包含有大小写字母。通常应用在字符串的复杂度。
DECLARE @s NVARCHAR(40) = N‘SDFfgGRYJhhTYUJ‘ IF LOWER(@s) COLLATE Latin1_General_CS_AS <> @s AND UPPER(@s) COLLATE Latin1_General_CS_AS <> @s PRINT ‘T‘ ELSE PRINT ‘F‘
标签:复杂 declare code event lap server 大小写 blocks src
原文地址:http://www.cnblogs.com/insus/p/6009970.html