mysql一次更新多条不同的记录(二)
那一行中,c1=200,所以前面那一行也被删掉了,最后只留下了一行。
一次最多能更新多少条记录?
mysql中没有一次更新记录数的限制,但是有sql语句长度的限制。如果需要执行超长的sql语句,需要调整max_allowed_packet这个配置参数。
max_allowed_packet参数的官方说明http://docs.oracle.com/cd/E17952_01/refman-5.5-en/replication-features-max-allowed-packet.html
1
max_allowed_packet sets an upper limit on the size of any single message between the MySQL server and clients, including replication slaves.
此参数规定mysql服务端和客户端之前的单个消息最大长度,在mysql主从同步时同样有效。