开发者

Remove everything before first # in mysql field

开发者 https://www.devze.com 2022-12-27 07:11 出处:网络
Excuse my ignorance. I need to replace all data in a mysql field before and including the first # . examplefield = golfers

Excuse my ignorance.

I need to replace all data in a mysql field before and including the first # .

example field = golfers

data at the first hole the 开发者_如何学编程golfer missed a 9 inch putt and said "#hit it bad

new data hit it bad


update table set new_column_name = substring(column_name, instr(column_name, '#') + 1);
0

精彩评论

暂无评论...
验证码 换一张
取 消