这一句如何改
- SQL code
where @code like code+'[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
1,有无更简洁的写法
2,后面的数字位数如不确定时,要怎样写
[解决办法]
- SQL code
where patindex('%[^0-9]%',@code)=0
[解决办法]
[解决办法]
发布时间: 2012-02-23 22:01:35 作者: rapoo
这一句如何改
where @code like code+'[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
where patindex('%[^0-9]%',@code)=0
[解决办法]