![]() |
爽快的墨镜 · 前端-打包优化之排除依赖(作为第三方依赖包发 ...· 1 年前 · |
![]() |
含蓄的啄木鸟 · mysql怎么解析json数组-PingCA ...· 1 年前 · |
![]() |
文雅的火锅 · 是否从Spring自动装配中排除子包?-腾讯 ...· 2 年前 · |
![]() |
风流的板凳 · Go 语言变量 | 菜鸟教程· 2 年前 · |
您可以链接REPLACE函数:
select replace(replace('hello world','world','earth'),'hello','hi') 这将打印hi earth。
您甚至可以使用子查询来替换多个字符串!
select replace(london_english,'hello','hi') as warwickshire_english from ( select replace('hello world','world','earth') as london_english ) sub 或使用JOIN替换它们:
select group_concat(newword separator ' ') from ( select 'hello' as oldword union all select 'world' ) orig inner join ( select 'hello' as oldword, 'hi' as newword union all select 'world', 'earth' ) trans on orig.oldword = trans.oldword 我将使用常见的表表达式来进行翻译,作为读者的练习;)来源:stack overflow
![]() |
风流的板凳 · Go 语言变量 | 菜鸟教程 2 年前 |