type casting in mysql

Posted by muralikalpana on Stack Overflow See other posts from Stack Overflow or by muralikalpana
Published on 2010-06-17T07:55:26Z Indexed on 2010/06/17 8:03 UTC
Read the original article Hit count: 174

Filed under:
|

i have passportno(varchar) in database.
i am entering values like this 001,002,003. and i want to display like sorting order.

now i wrote query like this "select * from passport_registration where status=1 ORDER BY passportno" then displaying output like this......077,088,099,100,1000,1001,1009,101,1010 i want to diplay sort order. how to do?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about casting