---
title: "mysql批量更新"
author: "bernoulli"
date: "2013-07-29T08:36:48Z"
tags: ["MySQL"]
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2013-07-29T08:36:48Z"
id: 1914744
url: "https://bernoulli.iteye.com/blog/1914744"
---

```
insert into test_tbl (id,dr) values  (1,'2'),(2,'3'),...(x,'y') on duplicate key update dr=values(dr);
```