ORACLE/MSSQL casting question

  • Thread starter Thread starter B. Cavour
  • Start date Start date
B

B. Cavour

I just changed a column from int to varchar.

what I want to do is change those values to strings

I'm having a hard time trying to find the command to do this

Many thanks,

BC
 
BC,

I believe what you want is:

cast(<expression> as varchar(<string length>))

I don't know if it will work in oracle, but it will work in SQL Server.
It's easy enough to test in oracle.

Hope this helps.
 
Back
Top