日期:2014-05-17 浏览次数:20408 次
Create PROCEDURE [dbo].[cpUpload]
(
@Prefix varchar(10)
)
create proc tracy_test
(
@Prefix varchar(20)
)
as
if patindex('%[^0-9a-Z]%',@Prefix)>0
select 'error'
else
select 'right'
exec tracy_test 'sdhfgasdj2133^^'
--error
exec tracy_test 'sdhfgasdj2133'
--right