Reputation: 405
I'm trying to fix some mobile no entry using phpmyadmin's SQL box.
Current mobile no format: 174254875444 (zero missing)
expected mobile no: 0174254875444
What I've tried
UPDATE `client_entry`
SET `contact_no` = "0" + `contact_no`;
But its not working. What would be the way to add 0 before all values on contact_no
column?
Upvotes: 1
Views: 349
Reputation: 64486
For mysql use concat
UPDATE `client_entry` SET `contact_no` = concat('0' , contact_no);
Upvotes: 1