Sql 从表中选择列,条件在其他表中
我的第一个表t1有以下列:Sql 从表中选择列,条件在其他表中,sql,postgresql,Sql,Postgresql,我的第一个表t1有以下列: t_id, c_id, town p_id, year_of_birth, t_id -- < is ref to t_id in 1st table 我的第二个表t2有以下列: t_id, c_id, town p_id, year_of_birth, t_id -- < is ref to t_id in 1st table 这在SQL中如何工作?使用普通内部联接:
t_id, c_id, town
p_id, year_of_birth, t_id -- < is ref to t_id in 1st table
我的第二个表t2有以下列:
t_id, c_id, town
p_id, year_of_birth, t_id -- < is ref to t_id in 1st table
这在SQL中如何工作?使用普通内部联接: