Home  >  Article  >  Backend Development  >  mysql 一次安插,竟然出现了三条数据

mysql 一次安插,竟然出现了三条数据

WBOY
WBOYOriginal
2016-06-13 12:49:09776browse

mysql 一次插入,竟然出现了三条数据
经查看,我没有做循环,如果随便在某个地方echo 一下,又正常了,只插入一条数据。

INSERT INTO tb_exp_log SET AddTime=NOW(),AccountID='36',OriginID='0',OriginParameter='0',CodeID='10100',Exp='5'


求大神指导


------解决方案--------------------
是不是有刷新动作或者重复提交动作
------解决方案--------------------
重复提交了吧
------解决方案--------------------
插入之前查询下数据库,如果已经存在该记录,则插入。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn