ASP 日期加流水号编号问题

[复制链接]
查看11 | 回复2 | 2011-10-6 12:09:36 | 显示全部楼层 |阅读模式
想到了一种方法,不过感觉不是太好用,你先试试。<%Function Get_NewId()dim i_datesqlstr = "Select top 1 no_id from uright order by no_id desc"Set rs = Conn.Execute(sqlstr)If Not rs.EOF Then
i_date = Year(date()) if Len(Month(date())) = 1 then i_date = i_date& "0"&Month(date()) else i_date = i_date&Month(date())...
回复

使用道具 举报

千问 | 2011-10-6 12:09:36 | 显示全部楼层
我只给个思路,有错误自行更正。<%Function Get_NewId()sqlstr = "Select top 1 no_id from uright order by no_id desc"Set rs = Conn.Execute(sqlstr)If rs.EOF AND rs.BOF ThenGet_Ne...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行