久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mysql update正則替換sql語句

      下面的update語句執(zhí)行的是把www.test.com中的test替換為abc

      程序代碼

      例句:

        Update test SET   url= REPLACE('www.test.com','test', 'abc' )   Where url REGEXP www.test.com;

      如果在記錄中,有類似

      www.test.com
      www.test1.com
      www.test2.com

      要將這些記錄都變成www.abc.com則執(zhí)行sql語句如下

        Update test SET   url= REPLACE('www.test.com','test', 'abc' )  Where url REGEXP '^(www.test)';

      正則是非常靈活的,但是有非常復雜的情況,正則的效率不一定高于其他的方法,不一定要死抱著一顆樹,有時候嘗試新的方法或許會學到更多的東西。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號