表名:ZL_Order_LuckCode












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2UserIDint40    用户ID
3Codeint40    幸运码
4ProIDint40    商品ID
5OrderIDint40    订单ID
6OrderNOnvarchar500    订单号
7CreateTimedatetime83    创建时间
8CreateTime2nvarchar500    创建时间

简要说明:

幸运码表


GO
CREATE TABLE [dbo].[ZL_Order_LuckCode] (
[ID] [int]  IDENTITY (1, 1)  NOT NULL,
[UserID] [int]  NULL,
[Code] [int]  NULL,
[ProID] [int]  NULL,
[OrderID] [int]  NULL,
[OrderNO] [nvarchar]  (50) NULL,
[CreateTime] [datetime]  NULL,
[CreateTime2] [nvarchar]  (50))
ALTER TABLE [ZL_Order_LuckCode] WITH NOCHECK ADD  CONSTRAINT [PK_ZL_Order_LuckCode] PRIMARY KEY  NONCLUSTERED ( [ID] )

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

detele from ZL_Order_LuckCode

--注意:将删除整个表

drop table ZL_Order_LuckCode

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

TRUNCATE table ZL_Order_LuckCode