Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前在表列中保留完全限定的类名,但在后端更改了此功能以保留简单的类名。
我需要将完全限定的类名更新为数据库中的简单名称,但不确定如何使用 REGEXP
我想更新列数据并更改com.test.models.core.SomeFilter为SomeFilter
com.test.models.core.SomeFilter
SomeFilter
所以从最后一个句号获取文本并更新列。
UPDATE filter_table SET filter_name= SUBSTRING_INDEX(filter_name, '.', -1);