里面有个字段是URL,
下面是这个字段的值的一部分数据
http://10.81.168.168:7002/crx?ajax....
http://10.81.168.168:7002/upc?ajax....
http://10.81.168.168:7002/rms?ajax....
http://10.81.168.168:7002/liu?ajax....
http://10.81.168.168:7002/kind?ajax....
http://10.81.168.168:7002/crx?ajax....
我现在要这个字段中的所有值中的"http://10.81.168.168:7002"部分
改成http://127.0.0.1:9080
请问用什么方法
10 个解决方案
#1
REPLACE(url,'10.81.168.168:7002','127.0.0.1:9080')
#2
在线等 !!!
#3
update table_name set column_name=replace(column_name,'10.81.168.168:7002','127.0.0.1:9080
');
');
#4
--比如:
SELECT REPLACE('http://10.81.168.168:7002/crx?ajax....','10.81.168.168:7002','127.0.0.1:9080') FROM dual;
结果:
http://127.0.0.1:9080/crx?ajax....
#5
update tablename
set colnumname=replace(colnum,'http://10.81.168.168:7002','http://127.0.0.1:9080')
#6
REPLACE(url,'10.81.168.168:7002','127.0.0.1:9080') 在oracle能执行是把?
呵呵 如果是 非常谢谢了 !
呵呵 如果是 非常谢谢了 !
#7
对的
#8
你是要更新,所以用update就是了:
update tablename set url=replace(url,'10.81.168.168:7002','127.0.0.1:9080')
#9
update tb set
url=replace(url,'http://10.81.168.168:7002','http://127.0.0.1:9080')
'
#10
谢谢大家了!!!!!!!!!!!!!
#1
REPLACE(url,'10.81.168.168:7002','127.0.0.1:9080')
#2
在线等 !!!
#3
update table_name set column_name=replace(column_name,'10.81.168.168:7002','127.0.0.1:9080
');
');
#4
--比如:
SELECT REPLACE('http://10.81.168.168:7002/crx?ajax....','10.81.168.168:7002','127.0.0.1:9080') FROM dual;
结果:
http://127.0.0.1:9080/crx?ajax....
#5
update tablename
set colnumname=replace(colnum,'http://10.81.168.168:7002','http://127.0.0.1:9080')
#6
REPLACE(url,'10.81.168.168:7002','127.0.0.1:9080') 在oracle能执行是把?
呵呵 如果是 非常谢谢了 !
呵呵 如果是 非常谢谢了 !
#7
对的
#8
你是要更新,所以用update就是了:
update tablename set url=replace(url,'10.81.168.168:7002','127.0.0.1:9080')
#9
update tb set
url=replace(url,'http://10.81.168.168:7002','http://127.0.0.1:9080')
'
#10
谢谢大家了!!!!!!!!!!!!!