表名:ZL_MisAttendance












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Departmentnvarchar2550    所属部门
3BeginTimenvarchar1000    开始时间
4EndTimenvarchar1000    结束时间
5UserNamenvarchar500    用户名
6Commentnvarchar5000    备注
7BeginStatusint40   00为未签到 1为签到
8EndStatusint40   00为未签退 1为签退

简要说明:

OA考勤表

GO
CREATE TABLE [dbo].[ZL_MisAttendance](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Department] [nvarchar](255) NULL,
[BeginTime] [nvarchar](100) NULL,
[EndTime] [nvarchar](100) NULL,
[UserName] [nvarchar](50) NULL,
[Comment] [nvarchar](500) NULL,
[BeginStatus] [int] NULL CONSTRAINT [DF_ZL_MisAttendance_BeginStatus]  DEFAULT ((0)),
[EndStatus] [int] NULL CONSTRAINT [DF_ZL_MisAttendance_EndStatus]  DEFAULT ((0)),
CONSTRAINT [PK_ZL_MisAttendance] 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]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0为未签到 1为签到' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_MisAttendance', @level2type=N'COLUMN',@level2name=N'BeginStatus'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0为未签退 1为签退' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_MisAttendance', @level2type=N'COLUMN',@level2name=N'EndStatus'

--注意:将清空全表数据

detele from ZL_MisAttendance

--注意:将删除整个表

drop table ZL_MisAttendance

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

TRUNCATE table ZL_MisAttendance