我的出局是:
我想在MySQL Workbench中获取输出时删除 http:// 。
ID URL
1 http://www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
2 http://www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
3 http://www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
我希望它是:
ID URL
1 www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
2 www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
3 www.christiantoday.com/article/samsung.galaxy.note.4.vs.htc.one.m8.buy.now.wait/38212.htm
答案 0 :(得分:1)
select replace(url, 'http://', '') as url
from your_table