I am using MySQL and I want to convert a string to a number because I have to select the max no between them.
- In my database I have two columns
item code
anditem name
, both are of varchar type - so the
item code
I want it to convert inint
ordouble
here I am writing query as SELECT MAX(itemcode) FROM ITEMMASTER
it is giving me result as 603
I want it to give me 2402
as this one is the maximum
Any help or guidance will be appreciated