序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Trname | varchar | 255 | 0 | 是 | 商标名 | ||||
3 | Producer | int | 4 | 0 | 是 | 所属厂商 | ||||
4 | TrClass | varchar | 50 | 0 | 是 | 商标类别 | ||||
5 | Isuse | int | 4 | 0 | 是 | 0 | 是否使用 | |||
6 | Istop | int | 4 | 0 | 是 | 0 | 是否品牌 | |||
7 | Isbest | int | 4 | 0 | 是 | 0 | 是否推荐 | |||
8 | TrPhoto | varchar | 50 | 0 | 是 | 品牌照片 | ||||
9 | TrContent | text | 16 | 0 | 是 | 品牌简介 | ||||
10 | Addtime | datetime | 8 | 3 | 是 | getdate | 添加时间 |
品牌表
GO
CREATE TABLE [dbo].[ZL_Trademark](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Trname] [nvarchar](255) NULL,
[Producer] [int] NULL,
[TrClass] [nvarchar](50) NULL,
[Isuse] [int] NULL,
[Istop] [int] NULL,
[Isbest] [int] NULL,
[TrPhoto] [nvarchar](500) NULL,
[TrContent] [ntext] NULL,
[Addtime] [datetime] NULL,
CONSTRAINT [PK_ZL_Trademark] 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_Trademark
drop table ZL_Trademark
TRUNCATE table ZL_Trademark