我需要一点帮助来检查数据。我有两张桌子。我想检查 file_name intableA
是否包含在tableB
. 如果不是,那么结果就是file_name
这个。
select * from tableA;
| id | file_name
+---+----------
| 1 | apple.jpg
| 2 | green_apple.jpg
| 3 | red_apple.jpg
| 4 | apple1.jpg
| 5 | apple-juce.jpg
////////////////////////////////////////////
select * from tableB;
| id | title |content
+----+----------+--------
| 1 | title1 | <img style="border:1px dotted;width:463px;height:611px;margin-left:20px;float:right;padding:3px;" src="image/green_apple.jpg" /><p>Lorem Ipsum is simply <b>dummy text</b> of the printing and typesetting industry. </p>
| 2 | title2 | <p>Lorem Ipsum is simply <b>dummy text</b> of the printing and typesetting industry. </p><img style="border:1px dotted;width:463px;" src="image/apple.jpg" />
| 3 | title3 | <img style="border:1px dotted;width:463px;" src="image/apple.jpg" /><p>Lorem Ipsum is simply <b>dummy text</b> of the printing and typesetting industry. </p><img style="border:1px dotted;width:463px;" src="image/apple.jpg" />
| 4 | title4 | <img style="border:1px dotted;width:463px;" src="image/red_apple.jpg" /><p>Lorem Ipsum is simply <b>dummy text</b> of the printing and typesetting industry. </p><img style="border:1px dotted;width:463px;" src="image/apple.jpg" />
| 5 | title5 | <p>Lorem Ipsum is simply <b>dummy text</b> of the printing and typesetting industry. </p><img style="border:1px dotted;width:463px;" src="image/apple1.jpg" />