0

我想知道快照表中不存在哪种“类型”,但总是出错:-

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

有人可以帮帮我吗?

4

2 回答 2

1

下面是一个有效查询的示例:

SELECT a.type 
  FROM snapshot a
  LEFT 
  JOIN register b
    ON b.type = a.type
 WHERE a.date = CURDATE()
   AND b.type IS NULL
于 2018-07-12T07:32:16.540 回答
0
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
于 2018-07-12T07:19:51.287 回答