我有一个 sql 查询,如:
SELECT
e.a,
c.b,
DATEDIFF(c.b,e.a),
DATEDIFF(CURDATE(),e.a)
FROM E e
LEFT JOIN C c
WHERE ( DATEDIFF(c.b, e.a) > 10 OR DATEDIFF(c.b, e.a) IS NULL )
AND DATEDIFF(CURDATE(), e.a) > 10
如何使用休眠条件查询来做到这一点..
我有一个 sql 查询,如:
SELECT
e.a,
c.b,
DATEDIFF(c.b,e.a),
DATEDIFF(CURDATE(),e.a)
FROM E e
LEFT JOIN C c
WHERE ( DATEDIFF(c.b, e.a) > 10 OR DATEDIFF(c.b, e.a) IS NULL )
AND DATEDIFF(CURDATE(), e.a) > 10
如何使用休眠条件查询来做到这一点..