有两个表节点:
nid INT(10)
type (VARCHAR(32))
node_hit_count
nid INT(10)
totalcount (bigint(20))
我需要nid从node表中选择所有不在node_hit_count表中且WHERE node类型等于feature或home或的 scompetition
我尝试过的,它错了,我的想法会爆炸:/
select * from node left join node_hit_counter on node.nid=node_hit_counter.nid
where hit.nid is null and node.type IN ('feature', 'home', 'competition')