CREATE TABLE [PAC06].[AC06004A]( [chPart] [varchar](16) NOT NULL, [sdRefDate] [smalldatetime] NOT NULL, [nmQty] [numeric](20, 3) NOT NULL, [nmSupport] [numeric](20, 3) NOT NULL, [nmOutst] [numeric](20, 3) NOT NULL, [inItem] [bigint] IDENTITY(1,1) NOT NULL, [chFrom] [varchar](6) NOT NULL, CONSTRAINT [PK_AC06004A] PRIMARY KEY CLUSTERED ( [inItem] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [PAC06].[AC06004A] ADD CONSTRAINT [DF_AC06004A_nmSupport] DEFAULT ((0)) FOR [nmSupport] GO ALTER TABLE [PAC06].[AC06004A] ADD CONSTRAINT [DF_AC06004A_nmOutst] DEFAULT ((0)) FOR [nmOutst] GO ALTER TABLE [PAC06].[AC06004A] ADD DEFAULT ('') FOR [chFrom] GO
时间: 2023-10-05 15:07:33 浏览: 142
这是一段 SQL 代码,用于创建一个名为 AC06004A 的表。表中包含了一些列,如 chPart、sdRefDate、nmQty 等等,每列都有自己的数据类型。其中,inItem 列是一个自增长的主键列。代码还定义了一些约束,如主键约束、默认约束等等。这段代码的作用是在数据库中创建一个名为 AC06004A 的表,用于存储某些数据。
阅读全文