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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -