温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

MariaDB 10.3支持update多表ORDER BY and LIMIT

发布时间:2020-08-03 04:54:56 来源:网络 阅读:973 作者:hcymysql 栏目: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支持update多表ORDER BY and LIMIT


MariaDB 10.3 更新成功

MariaDB 10.3支持update多表ORDER BY and LIMIT


---------------------------------------------------

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支持update多表ORDER BY and LIMIT


MariaDB 10.3 更新成功

MariaDB 10.3支持update多表ORDER BY and LIMIT


参考:https://jira.mariadb.org/browse/MDEV-13911



向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI