select wordbase.name,wb.name,wordconnection.wordid,wordconnection.aid,wordbase.goodsid,goods.hscode,goods.name from wordbase join wordconnection on wordbase.id=wordconnection.wordid ,wordbase wb,goods
where wordbase.name='THREAD' and wb.id=wordconnection.aid and wb.name='STEEL' and wordbase.goodsid=wb.goodsid and wordbase.goodsid=goods.id
select * from wordbase

标记一下,回头删除。

05-24 07:14