Why we are using to_number function in this query?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kishore Roul
    New Member
    • Jan 2011
    • 6

    Why we are using to_number function in this query?

    query like
    select * from emp where deptno=To_numbe r(10)
    i think it is used for tune the query ..yes on no.
    plz give me the relevant answer
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Check if the datatype of the column deptno is Varchar in the table? Also using TO_NUMBER is to convert the value to number externally.

    Comment

    Working...