MySQL compare leading zeros comparison -
i have database table account no 001 , 01 want update 01 record not 001 . query update account_name account_no = 01. update both records in database want one.
using number type account number not work then, since number of leading zeros arbitrary.
consider using string type: under such scheme leading zeros significant.
(if in fact field type account number string-like type, use account_no = '01'
query).
Comments
Post a Comment