I have a CHAR field which is usually an integer. I would like to sort 
this field as if it is an integer so that 1a 5b 10c 12xxx does not get 
sorted as 10c 12xxx 1a 5b.  I have successfully used something like 
"ORDER BY CHARFIELDNAME - 0"  which seems to convert the expression to 
an integer the same way that atoi would. This is exactly what I want. I 
would like to know if this is an accident or it is behavior that I can 
count on for future versions of sqlite. Thank you.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to