I have a query am working on where I want to Trim a leading character and the concat other three characters my query is as follows
SELECT CONCAT ('255', TRIM(LEADING '0' FROM `mobile`)
FROM subscriptions
where `group_id`= news;
The mobile column has number that start with 0 and I would like to remove the 0 and add the 255 to it when I try to run the query I get an error what am I doing wrong.
TRIMwill remove all leading 0s, if it is one, two, three or a hundred 0s. – ypercube Aug 15 '12 at 11:59