Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
337 views
in Technique[技术] by (71.8m points)

mysql 刷脏页未提交的数据能写入磁盘吗?

mysql 刷脏页的时候,如果有未提交的数据,这时候这个数据能写入磁盘吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

题主是指,一个表单页提交一次后,再次刷新后又被提交了一次吗?

如果是这样,你可以设置一个 token ,相同的token 不能使用两次

或者关键字段设置成唯一性,则数据库会报错(此方法并不推荐)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...