日期:2014-05-17 浏览次数:20462 次
declare @maxcode char(3)
set @maxcode='015'
set @maxcode='0'+convert(varchar,CAST(@maxcode as int)+1)
select @maxcode
declare @maxcode varchar(3)
set @maxcode='015'
set @maxcode =cast(cast(@maxcode as int) +1 as varchar(3))
select right('0000'+@maxcode,3)