MariaDB 10.3支持update多表ORDER BY and LIMIT

MariaDB 10.3支持update多表ORDER BY and LIMITbash

1)update連表更新,limit語句ide

update t1 join t2 on t1.id=t2.id set t1.name='hechunyang' limit 3;

MySQL 8.0 直接報錯spa

圖片.png


MariaDB 10.3 更新成功blog

圖片.png


---------------------------------------------------圖片

2)update連表更新,ORDER BY and LIMIT語句get

update t1 join t2 on t1.id=t2.id set t1.name='HEchunyang' order by t1.id DESC limit 3;

MySQL 8.0 直接報錯it

圖片.png


MariaDB 10.3 更新成功mariadb

圖片.png


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

相關文章
相關標籤/搜索