Davidqwas Posted September 20, 2008 Share Posted September 20, 2008 Is there something that I can run that will delete duplicates of a certain field in a database in MySql? While still leaving one of those copies? Link to comment https://forums.phpfreaks.com/topic/125035-mysql-affecting-php-simple-function-needed/ Share on other sites More sharing options...
xtopolis Posted September 20, 2008 Share Posted September 20, 2008 REPLACE http://dev.mysql.com/doc/refman/5.0/en/replace.html or INSERT ... ON DUPLICATE KEY UPDATE http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html Link to comment https://forums.phpfreaks.com/topic/125035-mysql-affecting-php-simple-function-needed/#findComment-646138 Share on other sites More sharing options...
Zane Posted September 20, 2008 Share Posted September 20, 2008 http://www.phpfreaks.com/forums/index.php/topic,217452.msg995125.html#msg995125 Link to comment https://forums.phpfreaks.com/topic/125035-mysql-affecting-php-simple-function-needed/#findComment-646169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.