表名:ZL_Message












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1MsgIDint40  留言ID
2Titlenvarchar2550    标题
3Contentntext160    内容
4Sendernvarchar5000    发件人=会员
5Inceptntext160    收件人
6PostDatedatetime83   getdate发送时间
7Savedataint40    0:正常,1:草稿
8statusint40   0是否发送0未发送,1已发送
9IsDelInboxint40   0是否被删除
10IsDelSendboxint40   0是否已删除
11receiptntext160    已收到
12MsgTypeint40   0短消息类型 2:手机短信,3:系统通知信息
13CCUserntext160    是否抄送
14ReadUservarchar80000    阅件人
15Attachmentnvarchar40000    邮件附件 多个地址用逗号隔开
16DelIDSnvarchar40000    已删除该邮件用户列表
17RealDelIDSnvarchar40000    彻底删除该邮件的用户列表
18UserNamenvarchar2000    发件人用户名

简要说明:

会员短消息表

GO
CREATE TABLE [dbo].[ZL_Message](
[MsgID] [int] IDENTITY(1,1) NOT NULL,
[Title] [nvarchar](255) NOT NULL,
[Content] [ntext] NOT NULL,
[Sender] [nvarchar](500) NOT NULL,
[Incept] [ntext] NOT NULL,
[PostDate] [datetime] NULL,
[Savedata] [int] NULL,
[status] [int] NULL,
[IsDelInbox] [int] NULL,
[IsDelSendbox] [int] NULL,
[receipt] [ntext] NULL,
[MsgType] [int] NULL,
[CCUser] [ntext] NULL,
[ReadUser] [varchar](8000) NULL,
[Attachment] [nvarchar](4000) NULL,
[DelIDS] [nvarchar](4000) NULL,
[RealDelIDS] [nvarchar](4000) NULL,
[UserName] [nvarchar](200) NULL,
CONSTRAINT [PK_ZL_Message] PRIMARY KEY NONCLUSTERED
([MsgID] 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_Message

--注意:将删除整个表

drop table ZL_Message

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

TRUNCATE table ZL_Message