我正在處理紅移&想寫一些查詢,它將刪除第一次出現的括號內的消息。在紅移有正則表達式查找第一次出現
輸入: -
FR_3000 Error opening file [File_Location]. Operating system error message [The system cannot find the path specified.].
輸出: -
FR_3000 Error opening file []. Operating system error message [The system cannot find the path specified.].
我想下面的查詢,但未能解決問題..
select regexp_replace(description,'\[(.*?)\]','') from emp;
告訴我們它不能解決你的問題。這可能是錯誤的正則表達式,甚至錯誤的表或列名稱 –