select * from apps.rcv_transactions u;
select *
from apps.mtl_material_transactions u
where 1 = 1
and u.rcv_transaction_id = ‘335’;
select *
from apps.mtl_transaction_accounts u
where 1 = 1
and u.transaction_id = ‘36546’;
select *
from apps.gl_code_combinations u
where 1 = 1
and u.code_combination_id in (‘1002’, ‘1004’, ‘1013’, ‘1014’)
本文分享了在Oracle数据库中使用SQL进行复杂查询的技巧,包括如何从不同表中筛选特定记录,如交易记录、材料交易及会计交易等。通过示例展示了如何使用条件语句和IN子句来精确匹配需求。
618

被折叠的 条评论
为什么被折叠?



