表名:ZL_Cart_Present












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2CartIDint40    对应的购物车ID
3Namenvarchar5000    商品名称
4W_StartNumint40    促销条件
5P_IDint40    促销绑定商品
6P_Numint40    促销数量
7P_Namenvarchar5000    促销品名
8P_Pricemoney84    促销价格
9W_Typeint40    促销类型
10R_Pricemoney84    实际优惠金额
11R_Numint40    实际赠送数量
12Remindnvarchar5000     

简要说明:

促销商品购物车绑定

GO
CREATE TABLE [dbo].[ZL_Cart_Present](
 [ID] [int] IDENTITY(1,1) NOT NULL,
 [CartID] [int] NULL,
 [Name] [nvarchar](500) NULL,
 [W_StartNum] [int] NULL,
 [P_ID] [int] NULL,
 [P_Num] [int] NULL,
 [P_Name] [nvarchar](500) NULL,
 [P_Price] [money] NULL,
 [W_Type] [int] NULL,
 [R_Price] [money] NULL,
 [R_Num] [int] NULL,
 [Remind] [nvarchar](500) NULL,
 CONSTRAINT [PK_ZL_Cart_Present] 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]

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

detele from ZL_Cart_Present

--注意:将删除整个表

drop table ZL_Cart_Present

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

TRUNCATE table ZL_Cart_Present