<cfquery name="checkinvoice" datasource="?">
SELECT DISTINCT INVOICE_DATE,DEPARTMENT,VALUE,INVOICE_NO
FROM ro_invoice
WHERE sheet_no='#newROSheet.sheetNo#'
MINUS
SELECT DISTINCT INVOICE_DATE,DEPARTMENT,VALUE,INVOICE_NO
FROM dbowner.rs_invoices
WHERE rs_id ='#recordSheet.id#'
</cfquery>
在上面的代码中,第一条select
语句属于,datasource1
第二条语句属于datasource2
(在 oracle 中)。如何使用 cfquery 执行这两个语句?