Skip to content
Advertisement

Codeigniter MySQL select max using varchar type value

I want to select max auto_no from the following varchar type column in my codeigniter model

In this example that the value is 825. I tried following option

But didn’t get the expected value. Can anyone help ?

Advertisement

Answer

I thin you can just select the max string:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement