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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -