-5
A
回答
0
這個什麼?
select replace(
replace('I bought Apple , Banana , Orange and Mango', 'Apple'),
'Banana')
from dual;
或
declare
my_string varchar2(50) := 'I bought Apple , Banana , Orange and Mango';
begin
my_string := replace(replace(my_string, 'Apple'), 'Banana');
end;
0
使用REGEXP_REPLACE避免鏈接多個替換功能在一起。
SELECT REGEXP_REPLACE(my_string, 'Apple|Banana', '') FROM my_table
0
select regexp_replace(source_string, '(^|\W)(Apple|Banana)(\W|$)', '\1\3', 1, 0, 'i') as new_string
from (select 'I bought Apple , Banana , Orange and Mango' as source_string
from dual);
NEW_STRING
I bought , , Orange and Mango
此代碼替換整個單詞 「蘋果」 或 「香蕉」 不區分大小寫。
0
我會嘗試這樣的事情
選擇替換(更換(「我買了蘋果,香蕉,橘子和芒果」,「蘋果」),「香蕉」) 從雙;
相關問題
- 1. perl - 如何從字符串中刪除特定的單詞?
- 2. 如何從字符串中刪除特定的單詞?
- 3. 通過字詞表從字符串中刪除特定單詞
- 4. 從列表中刪除特定的單詞/字符串
- 5. 如何從每個單詞在字符串中刪除特定的字母 - PHP
- 6. 從字符串中刪除單詞
- 7. 從字符串中刪除單詞
- 8. 從字符串c中刪除單詞#
- 9. 從字符串中刪除單詞
- 10. PHP如何從短語中刪除特定的字符串/單詞?
- 11. 如何從java中的字符串中刪除一些單詞
- 12. 如何從Java中的字符串中刪除單詞?
- 13. 如何從字符串中刪除特定位置的字符?
- 14. 如何從字符串中刪除匹配的單詞
- 15. 如何從PHP輸出的字符串中刪除單詞?
- 16. 如何從Java中的特定字符串中刪除特定字符?
- 17. 刪除字符串中的單詞Powershell
- 18. 如何從PHP中的字符串中獲取特定單詞?
- 19. 如何刪除字符串中的特定字符串?
- 20. 如何從字符串列表中刪除單詞列表
- 21. 如何從字符串中刪除單詞,用逗號分隔
- 22. PHP:如何從字符串中刪除最後一個單詞?
- 23. 如何從字符串中刪除單詞?
- 24. 如何從字符串中刪除某些單詞
- 25. 如何從字符串中刪除單詞?
- 26. 如何從字符串中刪除第一個單詞?
- 27. 如何從字符串中刪除最後一個單詞?
- 28. 如何刪除單個單詞/變量中的特殊字符
- 29. PHP,從包含特定單詞的大字符串中刪除所有行
- 30. 刪除單元格中的字符串中的特定字符
你用REPLACE試過了嗎? –
谷歌如何使用替換命令,這是你最好的選擇。此外,發佈你已經嘗試過,爲什麼它不工作 – Vbasic4now
可能重複的[從字符串中刪除特定的單詞](http://stackoverflow.com/questions/21527273/remove-specific-word-from-string) –