SQL用and和or多表查詢笛卡爾積

緣由:and或or都要有過濾條件才行,好比html SELECT T1.* from T_DC_ORDER_CENTER_DETAIL T1, TD_S_COMMPARA T2 WHERE T1.CHANNEL_CODE = T2.VALUEC1 AND T1.AUDIT_FLAG is null or (T1.AUDIT_FLAG = 2 and T1.CHANNEL_COD
相關文章
相關標籤/搜索