玉祥平台客服-15087858732

标题: 自动生成序列号,根据当前年开头 [打印本页]

作者: dingchong    时间: 2020-4-16 17:21
标题: 自动生成序列号,根据当前年开头
具体代码如下:
dim number=ExecuteScalar("select nvl(max(序号)+ 1,to_char(sysdate,'yyyy')||'0001')  from 表名 where 序号 like to_char(sysdate,'yyyy')||'%'")
编辑部件.SetFieldValue("序号",number)

无标题.png (217.78 KB, 下载次数: 263)

无标题.png





欢迎光临 玉祥平台客服-15087858732 (http://bbs.delit.cn/) Powered by Discuz! X3.2