stock表(Id,equimentNo,equimentName,equimentType,unit,warehouse,location,qty)
和stoEquipmentIODts表(Id,equipmentNo,equipmentName,equipmentType,equipmentUnit,qty)
将2张表连接起来成一张表,重复的不显示
distinct
select distinct * from stock st left join stoEquipmentIODts sd on st.id = sd.id
楼主是要两个表合并还连接?
select * from stock
union
select * from stoEquipmentIODts
如果字段的类型一一对应
select * from stock union select * from stoEquipmentIODts