从MySql中的Output中删除文本

时间:2014-06-19 01:11:27

标签: mysql

我的出局是:

我想在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

1 个答案:

答案 0 :(得分:1)

select replace(url, 'http://', '') as url
from your_table