2

我需要进行 MySQL 查询以TBL1从未列出的记录中选择记录TBL2,但不能使用我的查询。

SELECT deleted_guids.guid_type
     , HEX(data_table.guid_id) as guid_id
     , HEX(data_table.guid_type) as guid_type
FROM data_table 
LEFT JOIN deleted_guids 
     ON     data_table.guid_id = deleted_guids.guid_id 
        AND data_table.guid_type = deleted_guids.guid_type 
WHERE deleted_guids.guid_type = NULL;
4

1 回答 1

4

您需要更改= NULLIS NULL最后;这是正确的语法。请参阅使用NULL

于 2013-01-13T10:59:28.543 回答