半角英文字母Unicode范围65-90,97-122
全角英文字母Unicode范围65313-65338,65345-65370
*/
create function isletter(@str varchar(8000))
returns int
as
begin
while len(@str)>0
begin
if (unicode(left(@str,1)) not between 65 and 90)
and
(unicode(left(@str,1)) not between 97 and 122)
and
(unicode(left(@str,1)) not between 65313 and 65338)
and
(unicode(left(@str,1)) not between 65345 and 65370)
return 0