Question : Please help with Conversion function in sql

Hello everyone

I need to convert date with format mm/dd/yyyy to numeric nnnn format

char to varchar

in oracle sql query

Please help


Answer : Please help with Conversion function in sql

sorry, you should use

select to_number(to_char(dob, 'fmYYYY')) from dual --> will give you number 2003
select to_char(dob, 'fmYYYY') from dual --> will give you char '2003'
Random Solutions  
 
programming4us programming4us