在内连接上选择Count(*)

时间:2017-04-23 19:10:52

标签: sql

有人可以更正此声明或提高效率。谢谢你:

SET @intAnswer =  (SELECT COUNT(*)
FROM episode INNER JOIN
episodejoin ON episode.epi_id = episodejoin.epj_epi_id_dest INNER JOIN
episodetype ON episode.epi_ety_id = episodetype.ety_id
WHERE (episodejoin.epj_epi_id_src = @EpisodeID)

0 个答案:

没有答案