Phi*_*own 6 sql t-sql sql-server
我有以下几行:
Name Url
name1 http://foo.com/this/that
name6 http://that.net/hello
name2 http://foo.com/hello/world
name3 http://foo.com/world/hello
name4 http://hello.com/this/that
Run Code Online (Sandbox Code Playgroud)
我需要编写一个查询,将所有的改变foo.com来hello.com.
有任何想法吗?
UPDATE <table name> SET Url = REPLACE (Url, "foo.com" , "hello.com")
Run Code Online (Sandbox Code Playgroud)