如何将两个表通过相同字段链接查询
table A(scph,la,hwld,mainboard,id,mac,other)
table B(scph,la,hwld,chip,svp,date)
我想通过SCPH字段查询得到下面结果
scph,la,hwld,mainboard,id,mac,other,chip,svp,date
我对SQL不熟,通过怎么的查询语句可以实现?
[解决办法]
select a.scph,a.la,a.hwld,a.mainboard,a.id,a.mac,a.other,b.chip,b.svp,b.date
from A a inner join B b ON a.scph=b.scph