devxlogo

Converting from Varchar to Number

Converting from Varchar to Number

Question:
I have a table that contains numbers defined as varchar. How do I convert from varchar to number?

Answer:
Try using the CONVERT function.

If that is not an allowed conversion, try building a concordance table that lets you look up what you have and replace it with the second column.

devx-admin

Share the Post: