我有两个这样的视觉foxpro表:
table 1:
Client name age
Jason 65
Tom 44
Phil 30
table 2: (exactly same client name)
Client name salary
Jason 100
Tom 200
Phil 300
我想加入这两个表:
Client name age salary
Jason 65 100
Tom 44 200
Phil 30 300
有人能告诉我这个语法吗?谢谢!
答案 0 :(得分:0)
SELECT table1.customer,table1.age,table2.salary FROM table1 INNER JOIN table2 ON table1.customer = table2.customer