本文共 371 字,大约阅读时间需要 1 分钟。
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 更新成功
参考:
转载地址:http://lcxcl.baihongyu.com/