我想知道快照表中不存在哪种“类型”,但总是出错:-
Select * FROM
(Select type from snapshot) AS A where date = CURDATE())
LEFT JOIN
(Select type from register) AS B
ON A.type=B.type
WHERE B.type IS NULL
有人可以帮帮我吗?
我想知道快照表中不存在哪种“类型”,但总是出错:-
Select * FROM
(Select type from snapshot) AS A where date = CURDATE())
LEFT JOIN
(Select type from register) AS B
ON A.type=B.type
WHERE B.type IS NULL
有人可以帮帮我吗?
下面是一个有效查询的示例:
SELECT a.type
FROM snapshot a
LEFT
JOIN register b
ON b.type = a.type
WHERE a.date = CURDATE()
AND b.type IS NULL
In Standard SQL Syntax:
Select * FROM
(Select type from snapshot where date = CURDATE())AS A
LEFT JOIN
(Select type from register) AS B
ON A.type=B.type
WHERE B.type IS NULL