Data type conversion impact on performance [message #533063] |
Mon, 28 November 2011 01:21 |
|
patni123
Messages: 3 Registered: November 2011 Location: Hyderabad
|
Junior Member |
|
|
my sql query has three tables in from clause so it has two join conditions and one where condition.
account_no is number data type
and v_account_no is varchar2() data type
The where clause is :
"where account_no=to_number(v_account_no)"
with this condition in my sql query has the cost 392
we just modify the where clause as
where v_account_no=to_char(account_no)
with this condition in the sql query has the cost 11.
can any one explain what is impact of this data type conversion
and difference between these two "to_number() and to_char()"
in performance wise to reduce the cost of query?
|
|
|
|
|
|
|
|
|
|
|