MySQL Forums
Forum List  »  German

funktion wie similar_text() gesucht
Posted by: Alex S
Date: June 25, 2012 07:41AM

Moin,
gibt es in SQL eine solche funktion wie similar_text() in php?
Ich habe eine Musik-Datenbank und brauche ein Script um die Datenbank von Doppelten (eher gesaght von ähnlichen, Rechtschreibfehler, andere Schreibweisen, etc.) zu befreien.

Bisher mache ich das so:

$artist_db = mysql_query("SELECT id, name FROM `$artists_table` ");
while($artist = mysql_fetch_object($artist_db)) {

$check_db = mysql_query("SELECT id, nameFROM `$artists_table`
WHERE id != '$artist->id' ");

while($check = mysql_fetch_object($check_db)) {

checkfunktion("$artist->name", "$check->name");

}

}


Das ist allerdings zu viel Für meinen Server, nach etwa 500.000 checkfunktionen bricht der ab, das ist aktuell ein drittel der Artist-Datenbank.

hat jemand vorschläge?

Options: ReplyQuote


Subject
Views
Written By
Posted
funktion wie similar_text() gesucht
1831
June 25, 2012 07:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.