首页 > 学院 > 综合知识 > 正文

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

2022-07-13 12:56:49
字体:
来源:转载
供稿:网友

  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 更新成功
 
 

(编辑:错新网)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表