请哪位仁兄给偶补补 IN 语句
好像效率不高,执行起来会 LOOP 所有的 IN 数据。
不过有时候又必须得这么用,:(
如果 IN 数据非常多的话,应该怎么改造呢?
比如:
select A.*, B.chinese_name,B.singer
from resource_detail A, resource B
where A.resource_id = 2038
and A.filetype_id in (
43,141,142,144,153,207,232,306,331,383,408,460,485,537,562,614,639,691 )
and B.resource_id = A.resource_id;