序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | stocktype | int | 4 | 0 | 是 | 出库|入库 | ||||
3 | danju | varchar | 500 | 0 | 是 | 单据号 | ||||
4 | proname | varchar | 500 | 0 | 是 | 商品名 | ||||
5 | addtime | datetime | 8 | 3 | 是 | 添加时间 | ||||
6 | adduser | varchar | 50 | 0 | 是 | 添加用户 | ||||
7 | content | ntext | 16 | 0 | 是 | 详情备注 | ||||
8 | proid | int | 4 | 0 | 是 | 商品ID | ||||
9 | pronum | int | 4 | 0 | 是 | 商品数量 | ||||
10 | UserID | int | 4 | 0 | 是 | |||||
11 | AdminID | int | 4 | 0 | 是 | |||||
12 | StoreID | int | 4 | 0 | 是 | 店铺ID |
库存信息表
GO
CREATE TABLE [dbo].[ZL_Stock](
[ID] [int] IDENTITY(1,1) NOT NULL,
[stocktype] [int] NULL,
[danju] [varchar](500) NULL,
[proname] [varchar](500) NULL,
[addtime] [datetime] NULL,
[adduser] [varchar](50) NULL,
[content] [ntext] NULL,
[proid] [int] NULL,
[pronum] [int] NULL,
[UserID] [int] NULL,
[AdminID] [int] NULL,
[StoreID] [int] NULL,
CONSTRAINT [PK_ZL_Stock] 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]
detele from ZL_Stock
drop table ZL_Stock
TRUNCATE table ZL_Stock