表名:ZL_Shop_Material












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Namenvarchar2000    原料名称
3Unitnvarchar500    原料单位
4Pricemoney84    原料价格
5CDatedatetime83     
6Remindnvarchar5000     

简要说明:

商品原材料管理


GO
CREATE TABLE [dbo].[ZL_Shop_Material](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](200) NULL,
[Unit] [nvarchar](50) NULL,
[Price] [money] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](500) NULL,
CONSTRAINT [PK_ZL_Shop_Material] 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]

(
[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_Shop_Material

--注意:将删除整个表

drop table ZL_Shop_Material

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

TRUNCATE table ZL_Shop_Material