假设有两个表table1,table2两个表中都有goodsname字段 ,table2中有 checkman 字段
 要求找table1的所有数据 , table1中的 goodsname 要等于 从table2中取得的 goodsname , 先从 table2中取得数据 select goodsname from table2 where checkman='a', 只 这个数据集中有的goodsname ,在table中都要找到 说了半天就是连表查询啦 ,我写了:
select * from table1 where goodsname in select goodsname from table2 and checkman='a' 这样出错???