千家信息网

MariaDB 10.3支持update多表ORDER BY and LIMIT

发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,MariaDB 10.3支持update多表ORDER BY and LIMIT1)update连表更新,limit语句update t1 join t2 on t1.id=t2.id set t1.
千家信息网最后更新 2025年02月03日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 更新成功


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



0