ColdFusion: SQL Select IN from a Query
问题 I have a SQL Server query which returns two values for one MyBusinessUnit column returns two values, say: 1111 2222 in a query object called MyQuery1 Both of these values also exist in a DB2 database's MyCorpUnit column. What I want is to select all the matching records from the DB2 table--and, no, cross database queries are NOT working. So, here's my Query2 for DB2 database: <cfquery name="Query2" datasource="#application.DSN#"> SELECT MyCorpUnit WHERE MyCorpUnit IN ( <cfqueryparam value="