sql - Cut text in mysql -
i have table:
names id | name | text 1 | mr paul | aaaa 2 | mr marc | bbb 3 | mr john | ccc
how can remove prefix "mr " sql?
here answer,
mysql replace function task
update table set name = replace(name, 'mr ', '') name 'mr %'
it updates names begins mr
suffix
Comments
Post a Comment