以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  自动编码问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=33777)

--  作者:hbaijia
--  发布时间:2013/5/24 10:04:00
--  自动编码问题

采用\'MP\' + SubString(\'0000\', 1, 4 - Len(Convert([_Identify],\'System.String\'))) + Convert([_Identify], \'System.String\')

自动编码,如果删除一行后,再新增时,编码会在已删除的码后面自动加1,中间出现空档,如何解决?


--  作者:XYT
--  发布时间:2013/5/24 10:15:00
--  
那就用代码写编码