怎么从mysql字段的值截取某个字符之前的数据

2025-03-22 16:27:28
推荐回答(1个)
回答1:

这样就可以了呀

update t1 set `id`=substring_index(`id`,"_",1)

其实你自己已经完成一大半了