有人可以更正此声明或提高效率。谢谢你:
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)