select code,type,name,price,unit from goodstype,goods,goodunit where goodstype.typeid=goods.typeid and goodstype.unitid=goodunit.unitid