流水号生成
0000001
0000002
0000003
0000004
0000005
0000006
0000007
0000008
0000009
000000a
……
000000z
0000010
……
000001z
以此类推
相关推荐
流水号生成软件
流水号生成软件 生成工具
生成字母流水号工具类
根据字母生成流水号,例如当前流水号为AA,则生成新的流水号为AB。若当前流水号为AZ,则生成新的流水号为BA。若当前流水号为ZZ,则生成新的流水号为AAA。若当前流水号为空,则根据传入的位数生成初始值,以此类推。
C#生成流水号小代码
自己写的一点小代码,多有不当,请指正! public string GetAutoDocNo() { string DocNo = "AD"; string today = DateTime.Today.Date.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo); DataSet DocDs = GetDataSet(" select * from News"); //初始化 if (DocDs.Tables[0].Rows.Count == 0) { DocNo += today + "101"; return DocNo; } /***********************/ else if (DocDs.Tables[0].Rows.Count > 0) { int count = 0; string oldDocNo = string.Empty; for (int i = 0; i 0/*当天已经有单*/) { DocDs = GetDataSet("select MAX(CAST(SUBSTRING(NewsID,3,12) AS BIGINT)) as NewsID from News where (SUBSTRING(NewsID,3,8))='" + today + "'"); string id = DocDs.Tables[0].Rows[0]["NewsId"].ToString(); string lastid = id.Substring(8, 3); try { decimal lastidec = decimal.Parse(lastid); lastidec += 1; return DocNo + today + (lastidec.ToString()); } catch (Exception) { throw; }
Oracle 中生成流水号的方法
主要介绍了Oracle 中生成流水号的方法 的相关资料,需要的朋友可以参考下
JAVA生成订单号(日期+流水号)
java按日期加流水号方式生成订单号,已经测试过,可递增方式生成。


应用实例
