RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
MariaDB10.3支持update多表ORDERBYandLIMIT

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


当前文章:MariaDB10.3支持update多表ORDERBYandLIMIT
标题路径:http://scyingshan.cn/article/ppoooo.html