可以连access数据库和SQL server
想要连mysql 只能先连SQL server,再从SQL server做触发去同步到MYSQL
这句是查询打卡记录
SELECT * from user u LEFT JOIN card c ON u.id = c.user_idWHERE u.id = c.user_id
先查出打卡记录的人,然后在user查询不包含打卡人的记录
SELECT * from user WHERE id not in (SELECT u.id from user u LEFT JOIN card c ON u.id = c.user_id
WHERE u.id = c.user_id and c.time > '2015-11-02'
and c.time < ' 2015-11-03' GROUP BY u.id
)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)