加入收藏 | 设为首页 | 会员中心 | 我要投稿 拼字网 - 核心网 (https://www.hexinwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MariaDB 10 3支撑update多表ORDER BY and LIMIT

发布时间:2022-07-02 23:31:00 所属栏目:MySql教程 来源:互联网
导读:MariaDB 10.3支持update多表ORDER BY and LIMIT 1)update连表更新,limit语句 update t1 join t2 on t1.id=t2.id set t1.name=hechunyang limit 3; MySQL 8.0 直接报错 MariaDB 10.3 更新成功 2)update连表更新,ORDER BY and LIMIT语句 update t1 join t2
MariaDB 10 3支撑update多表ORDER BY and LIMIT
  MariaDB 10.3支持update多表ORDER BY and LIMIT
 
  1)update连表更新,limit语句
 
  update t1 join t2 on t1.id=t2.id set t1.name='hechunyang' limit 3;
  MySQL 8.0 直接报错

  MariaDB 10.3 更新成功

  2)update连表更新,ORDER BY and LIMIT语句
 
  update t1 join t2 on t1.id=t2.id set t1.name='HEchunyang' order by t1.id DESC limit 3;
  MySQL 8.0 直接报错

  MariaDB 10.3 更新成功
 
 

(编辑:拼字网 - 核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!