有三个字段的表,所有的人都指同场的另一个表,如下所示:如何使用连接条件编写正确的SQL查询语句?
table1
-------
! a_term_id* ! b_term_id* ! c_term_id* !
! ! ! !
table2
-------
! term_id ! term_title ! term_description !
! ------- ! ! !
列a_term_id,b_term_id,c_term_id都是指term_id
我应该怎么写SQL语句检索三个字段的信息?
你的问题不明确。你能用例子来详细说明吗? – 2011-04-24 06:37:29
请更清楚 – sym3tri 2011-04-24 06:42:05
一个表的模式是:a_term_id,b_term_id,c_term_id,另一个表的模式是:term_id,term_title,term_description,fileds a_term_id,b_term_id,c_term_id都是指term_id,所以我该如何写sql语句检索三个字段的信息? – David 2011-04-24 06:45:07