表名:ZL_Plat_Mail












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Titlenvarchar2000    邮件标题
3Contentntext160    邮件内容
4Sendernvarchar2000    发件人
5CCUsernvarchar5000    抄送人
6Receivernvarchar5000    收件人
7Attachnvarchar30000    附件
8MailDatedatetime83    邮件编辑时间
9CDatedatetime83    发送时间
10UserIDint40     
11MailIDnvarchar3000    邮件编号
12Statusint40    邮件发送状态
13MailTypeint40    邮件类型

简要说明:

能力邮箱表


GO
CREATE TABLE [dbo].[ZL_Plat_Mail](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [nvarchar](200) NULL,
[Content] [ntext] NULL,
[Sender] [nvarchar](200) NULL,
[CCUser] [nvarchar](500) NULL,
[Receiver] [nvarchar](500) NULL,
[Attach] [nvarchar](3000) NULL,
[MailDate] [datetime] NULL,
[CDate] [datetime] NULL,
[UserID] [int] NULL,
[MailID] [nvarchar](300) NULL,
[Status] [int] NULL,
[MailType] [int] NULL,
CONSTRAINT [PK_ZL_Plat_Mail] 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_Plat_Mail

--注意:将删除整个表

drop table ZL_Plat_Mail

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

TRUNCATE table ZL_Plat_Mail