我有2个表:是基于另一个表ID的查找返回值SQL查询
dbo.Events
EventID EventName Location
1 Birthday Party 2
2 Wedding 1
dbo.EventsLocation
Location LocationName
1 Room 1
2 Room 2
我想提出的是返回以下
Birthday Party Room 2
Wedding Room 1
,因为它看起来很像功课,第一个建议可能是谷歌为“SQL连接”。 – 2012-01-04 23:40:52