首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

怎么将两个表通过相同字段链接查询

2012-01-15 
如何将两个表通过相同字段链接查询table A(scph,la,hwld,mainboard,id,mac,other)table B(scph,la,hwld,ch

如何将两个表通过相同字段链接查询
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

热点排行