Massive URL Decode in MySQL
I have a MySQL table with 10,000+ entries. There are four columns in the table. One of them开发者_StackOverflow is URL. Some of the URL values are encoded, some are decoded. I want to have them all be decoded.
How can I do this either with PHP directly or MySQL?
Thanks!
Is this what you want?
$result = $db->query("SELECT encoded_url FROM table");
while($row = mysql_fetch_assoc($result)){
$decoded = your_function_to_decode($row['encoded_url']);
}
精彩评论