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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -