序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Name | nvarchar | 200 | 0 | 是 | 原料名称 | ||||
3 | Unit | nvarchar | 50 | 0 | 是 | 原料单位 | ||||
4 | Price | money | 8 | 4 | 是 | 原料价格 | ||||
5 | CDate | datetime | 8 | 3 | 是 | |||||
6 | Remind | nvarchar | 500 | 0 | 是 |
商品原材料管理
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
TRUNCATE table ZL_Shop_Material