阅读背景:

避免重复进入mysql数据库的最佳方法

来源:互联网 

I have a table with 3 columns - id (pk), pageId (fk), name. I have a php script which dumps about 5000 records into the table, with about half being duplicates, with same pageId and name. Combination of pageId and name should be unique. What is the best way to prevent duplicates being saved to the table as I loop through the script in php?I have a table with 3 columns - id (pk), pageId




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: