SELECT PRODESCRIPTION.PDC_DESC,PRODESCRIPTION.PD_CODE
FROM BILLDETL,BILLMAST,PRODESCRIPTION
WHERE BILLDETL.BMC_SLNO=BILLMAST.BMC_SLNO
AND PRODESCRIPTION.PD_CODE=BILLDETL.PD_CODE
AND BILLMAST.PT_NO='" + hospitalNo + "'
AND BILLDETL.ORIGINAL_OUCODE='L002'
AND TO_DATE(BILLMAST.BMD_DATE,'DD/MM/YY')
=TO_DATE('" + visitDate.ToShortDateString() + "','DD/MM/YY')"
上述查询在 oracle 中有效,但使用 asp.net oledb 连接连接到 oracle 时发生错误