我得到了包含數據的一千個字符串以及標有'@xx'的id。如果字符串有'|'它表明有一個ID的數據更多。更換SQL中字符串的一部分
如何找到並替換包含特定ID的所有ID?如果我想換@ 1〜@ 24我不想@ 11改爲@ 241
一些exampels 預計輸出:
[email protected] -> [email protected]
[email protected] -> [email protected]
[email protected]|[email protected]|[email protected] -> [email protected]|[email protected]|[email protected]
更換(列, '@ 1' ,'@ 24')將不起作用,因爲@ 11將被更改爲@ 241。所以我需要知道它是否是字符串的結尾,或者是否以'|'結尾
顯示您的預期輸出 – TheGameiswar
我的編輯與預期的輸出 – thatsIT