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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -