开发者

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']);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜