我有2个表:参考和内容
我想从refs中选择一行名为bi = 0的行。
然后我想在refs.topic_id = content.topic_id
时加入refs表和内容表以下是我尝试的但由于连接,其中和on语句都是错误的错误。
SELECT refs.topic_id,bi,ci,fvi,tvi
FROM refs
WHERE bi= “0”
JOIN content
ON refs.topic_id = content.topic_id
ORDER BY bi;
答案 0 :(得分:3)
SELECT refs.topic_id,bi,ci,fvi,tvi
FROM refs
JOIN content
ON refs.topic_id = content.topic_id
WHERE bi= “0”
ORDER BY bi;
答案 1 :(得分:0)
join子句必须直接遵循from子句。