android - How to get Max id in table column database?when id store as string? -


in app want max id column .am using max function max id 0-9 ,,but after 10 not work.

the reason store id datatype text not int.how max id id column vales?

try

select max(cast(id int)) table_name 

using sqlite cast can it. if choose integer id column.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -