存储过程,判断传入值的格式为 数字+字母最近要批量导入数据,写了一个存储过程,
create proc tracy_test(@Prefix varchar(20))asif patindex('%[^0-9a-Z]%',@Prefix)>0select 'error'elseselect 'right'exec tracy_test 'sdhfgasdj2133^^'--errorexec tracy_test 'sdhfgasdj2133'--right