C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着
drop proc GetRCId go create proc GetRCId(@int int) as begin declare @next int declare @id varchar(50) declare @date varchar(50) set @int=@int+1 set @date = Convert(varchar(50),getdate(),112) set @next = 10000+@int set @id = substring(cast(@next as varchar(5)),len(cast(@next as varchar(5)))-3,4) set @id ='rc'+@date+@id print @id end go exec GetRCID 3
posted on 2008-06-11 22:59  王德田  阅读(201)  评论(0编辑  收藏  举报