You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/word/新协航_设计文档/数据库建表文档/1.0/增加自生成序列号的方法.txt

30 lines
733 B
Plaintext

1.在sSysBillType当中增加一行
insert tSysbilltype(BillCode,BillName,BillGrp,IsRule,NoLength,IsPrefix,PrefixLen,PrefixNo,IsDate,DateFmt,SerialLen,
YearNo,MonthNo,DayNo,MaxSerial,BillHeadTbl,IsOrgPrefix)
values( '0204' , '融出资金序号' , '进口贸易' , '1' ,
6 , '1' , 3 , 'FOut' , '1' ,
'YYYYMMDD' , 4 , '2013' , '01' ,
'01' , 57 , 'Import_Finance_Out' , '0' )
2.建立 tSys_表名 的表
/****** Object: Table [dbo].[tSys_Import_Finance_Out] Script Date: 11/13/2013 17:02:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tSys_Import_Finance_Out](
[SerialNo] [numeric](27, 0) IDENTITY(1,1) NOT NULL,
[Data_Null] [varchar](1) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO