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? Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.