MySQL update limit 更新限定条数
MySQL 大约 230 字SQL
update test_table set test_column = 'test_value' limit 100;
注意
update limit offset
语句是不可以执行的。
update aaa set bbb = 'ccc' limit 10 offset 20; -- 错误语句
备注
MySQL
中delete limit
操作可以正常执行;Oracle
、PostgreSQL
没有实现update limit
功能,需要使用子句完成;
阅读 3746 · 发布于 2020-12-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring Cloud OpenFeign 使用指定配置阅读 511
-
Android 使用 CountDownTimer 类进行倒计时阅读 1679
-
Windows 添加用户到指定用户组阅读 1048
-
Kubernetes ConfigMap 创建失败 cannot unmarshal number into Go struct field ConfigMap.data of type string阅读 1320
-
走进 Rust:结构体方法阅读 1720
-
走进 Spring Boot 第二步之 SpringApplicaiton 构造函数阅读 3594
-
MySQL 使用的是 BTree 还是 B+Tree阅读 2519
-
macOS 使用 Colima 代替 Docker Desktop阅读 113
-
Linux grep 过滤注释行阅读 719
-
Vue i18n 国际化阅读 262