Mysql 从tbl2中未列出的tbl1中选择
我需要进行MySQL查询,从Mysql 从tbl2中未列出的tbl1中选择,mysql,sql,Mysql,Sql,我需要进行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
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;
最后需要将
=NULL
更改为为NULL
;这是正确的语法。请参阅。您需要在末尾将=NULL
更改为为NULL
;这是正确的语法。看