|
John,
Oracle will apply both "where" clauses: table_name = 'BUY_PRICE_PIECE_TYPE_HISTORY' and
to_number(substr(partition_name,5,2)) =
buy_price_pkg.cnv_bpt_to_bp_id(5)
to each row at the same time.
If you want to force oracle to do it sequencially (first -
table_name, then - the other one), use in-line view:
SELECT
to_number(substr(partition_name,5,2)),
buy_price_pkg.cnv_bpt_to_bp_id(5)
FROM (select partition_name from
all_tab_partitions
WHERE table_name = 'BUY_PRICE_PIECE_TYPE_HISTORY' and partition_name != 'TYPE01') WHERE to_number(substr(partition_name,5,2)) = buy_price_pkg.cnv_bpt_to_bp_id(5) This should do it for you.
|
- Coercion issue John Weatherman
- RE: Coercion issue Robertson Lee - lerobe
- Re: Coercion issue Connor McDonald
- Re: Coercion issue Igor Neyman
- RE: Coercion issue Robertson Lee - lerobe
- Re: Coercion issue Igor Neyman
- RE: Coercion issue John Weatherman
- RE: Coercion issue Mercadante, Thomas F
- RE: Coercion issue Mercadante, Thomas F
- Re: Coercion issue Igor Neyman
- Re: Coercion issue Chaim . Katz
- RE: Coercion issue Jacques Kilchoer
- RE: Coercion issue Jacques Kilchoer
- Re: Coercion issue Igor Neyman
