我有两点询问,每一份 no子清单都交回。
SELECT node.nid
FROM dpf_node AS node
WHERE node.type = image AND node.nid;
SELECT node.nid
FROM dpf_node AS node, dpf_image_galleries_images AS image
WHERE image.image_nid = node.nid
AND node.type = image
AND image.gallery_nid = 138;
这两项工作都是正确的。
归根结底,尽管我想要获得第一个结果清单而不是第二个结果清单中的女婴清单,但我一直在利用这一询问:
SELECT node.nid
FROM dpf_node AS node
WHERE node.type = image
AND node.nid NOT IN (SELECT node.nid
FROM dpf_node AS node, dpf_image_galleries_images AS image
WHERE image.image_nid = node.nid
AND node.type = image
AND image.gallery_nid = 138);
而此时此刻,这只是为了打上了两条ball子,使ache子停止。 我怀疑(hope)清除数据并再次着手解决数据问题,但真的希望在系统一旦出现后重新确定其头部的情况下解决实际问题。