Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 从tbl2中未列出的tbl1中选择_Mysql_Sql - Fatal编程技术网

Mysql 从tbl2中未列出的tbl1中选择

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

我需要进行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;

最后需要将
=NULL
更改为
为NULL
;这是正确的语法。请参阅。

您需要在末尾将
=NULL
更改为
为NULL
;这是正确的语法。看