我有以下两个表,并想构建一个将匹配表之间的字段的选择查询:
tablename columnname size order
employee name 25 1
employee sex 25 2
employee contactNumber 50 3
employee salary 25 4
address street 25 5
address country 25 6
从这里我想构建查询
select
T1.name,
T1.sex,
T1.contactNumber,
T1.salary,
T2.street,
T2.contry
from tablename1[employee] T1,
tablename2[address] T2
如何构造上面的查询,这里的表名可以N
也columname
可以也可以N
。