Question
CFQuery with an IN statement (how do you do it)
I have a <cfquery> SQL statement with a 'where in ( )'
clause but quotedValueList can't handle values greater than 1000,
so, how do you do it?
Now, I can't just stick the first query into the second query to make it work. The first query is more complicated than the example I gave so that's why I have to break them up. So, how would I make the second query work if the first query returned 2000 students?
<cfquery name="getStudents" datasource="Oracle">
select pk1
from users
group by pk1
</cfquery>
<cfquery name="getStudentCourses" datasource="Oracle">
select course_id
from course_users
where users_pk1 in (......)
</cfquery>
Now, I can't just stick the first query into the second query to make it work. The first query is more complicated than the example I gave so that's why I have to break them up. So, how would I make the second query work if the first query returned 2000 students?
<cfquery name="getStudents" datasource="Oracle">
select pk1
from users
group by pk1
</cfquery>
<cfquery name="getStudentCourses" datasource="Oracle">
select course_id
from course_users
where users_pk1 in (......)
</cfquery>
