1. 首页
  2. 主题
  3. Go问与答

MySQL更新替换语法怎么写才对呢

hellsam · · 1391 次点击
~~~ 如以上可以直接把aa替换bb update table set name=replace(name,'aa','bb') 但是如果我想把bb替换为一个查询条件呢 如demo: update table set name=replace(name,'aa','+(select id from user where name = 'myname' limit 1)+') l类似这样的语法MYSQL支持吗 我测试多次没有一次成功 ~~~
更多评论
为什么不这样写呢? update table set name='aa' where name ='bb'
#1

用户登录

没有账号?注册

今日阅读排行

    加载中

一周阅读排行

    加载中