怎么样生成这样的序列号0001,0002,0003.......0020 怎么样生成这样的领料单号,按照这样的顺序0001,0002,0003.......0020,每当前台发出一张领料单的时候就生成相应的序列号,有没有什么好的方法和思路. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 程序中用一个静态变量计数,然后Format生成这样的序号. 自己写个小存储过程,不就ok了?if exists(select name from sysobjects where name ='usp_createnum') drop proc usp_createnumgocreate pro usp_createnum...... declare @i intset @i=1while (@i<100)beginselect right(cast((10000+@i) as char(5)),4)set @i=@i+1end Delphi中可以用ShowMessage(Format('%.5d', [1])); 找Delphi开发的工作,在深圳,有消息的朋友不妨推荐一下如何呢? LoadLibrary的返回值为0 请问:SimDesign.NativeXml支持scheme和stylesheet吗? 弱问题呀,请教取得一个表所有字段名称和类型的效率最高的通用的方法!!!!!!!!!!!!! 高分求教,如何使用API对文本框发送按键消息? 怎样显示?????????????? bpl文件问题 如何在delphi中用语句在sql中生成一个database? 急!!在线等待,立即给分 急急急!——控件实现多线程发EMAIL??!! 如何对WebBrowser进行读写? 【德国归来】散分!
if exists(select name from sysobjects where name ='usp_createnum')
drop proc usp_createnum
go
create pro usp_createnum
......
set @i=1
while (@i<100)
begin
select right(cast((10000+@i) as char(5)),4)
set @i=@i+1
end
ShowMessage(Format('%.5d', [1]));