表名:ZL_Shop_GroupPro












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Namenvarchar2000    组合名称
3ProIDSvarcharMAX0    商品IDS(只是做为记录,实际值应该取ParentID=其的值)
4AdminIDint40    创建管理员ID
5CDatedatetime83    创建时间
6Remindnvarchar5000    备注信息
7UserIDint40     
8StoreIDint40    店铺ID

简要说明:

商品组合表

GO

CREATE TABLE [dbo].[ZL_Shop_GroupPro](
 [ID] [int] IDENTITY(1,1) NOT NULL,
 [Name] [nvarchar](200) NULL,
 [ProIDS] [varchar](max) NULL,
 [AdminID] [int] NULL,
 [CDate] [datetime] NULL,
 [Remind] [nvarchar](500) NULL,
 [UserID] [int] NULL,
 [StoreID] [int] NULL,
 CONSTRAINT [PK_ZL_Shop_GroupPro] PRIMARY KEY CLUSTERED
(
 [ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

SET IDENTITY_INSERT [ZL_Shop_GroupPro] ON
INSERT [ZL_Shop_GroupPro] ([ID],[Name],[ProIDS],[AdminID],[CDate],[Remind],[StoreID]) VALUES ( 1,N'示例单品组合',N'3,2,1',0,N'2016/11/28 20:40:48',N'示例商品组合','0')
SET IDENTITY_INSERT [ZL_Shop_GroupPro] OFF

--注意:将清空全表数据

detele from ZL_Shop_GroupPro

--注意:将删除整个表

drop table ZL_Shop_GroupPro

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_Shop_GroupPro