查询速度慢,望高手解决
表结构
c_tag_word 表(id,word)
c_movie_tag_director (aid,tagid)
select word from c_tag_word where exists( select 1 from c_movie_tag_director where aid= '1209' and tagid=c_tag_word.id )
select distinct a.wordfrom c_tag_word a,c_movie_tag_director bwhere a.id=b.tagid and b.aid= '1209'