首页 新闻 赞助 找找看

数据库表中的数据是不是比对

0
[待解决问题]

 

  SELECT  a . attmachineid , b . employeeid , a . cardno , checkdate , checktime , checktype , a . description
                                                 FROM t_attrawrecord a
                                                 inner JOIN t_attuserinfo b
                                                 ON a . cardno = b . enrollno  
                               WHERE not exists( select 1 from t_attrecord c
                                                 where  a . attmachineid = c . attmachineid
                                        AND a . cardno = c . cardno
                                        AND a . checkdate = c . checkdate
                                        AND a . checktime = c . checktime
                                        AND b . employeeid = c . employeeid
                                        AND a . checktype = c . checktype )
                                        and checkdate = '2010-10-07'
迅邦软件,采集的时候,是先删除t_attrecord 再更新当天的记录。增加考勤参数
INSERT INTO t_attparam 

SELECT '11','系统参数','当天是否删除签卡记录','是',null

来处理是采集是否删除。
迅邦人力资源软件 -http://www.xunbang.cc
cjf1115的主页 cjf1115 | 初学一级 | 园豆:200
提问于:2010-10-12 11:22
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册