我有場景,我的數據是一樣的東西如下: Chapter 18 Unit 10 Sect 16
Case 1 : I want to select Chapter 18 from the above string.
Case 2 : I want to select Unit 10 from the above string.
Case 3 : I want to select Sect 16
我正在尋找一種方法來通過SQL獲取每個字符串的第二個值。 我的字符串如下所示: 12:115:22:98 ,我想獲得每2值超出它,在這種情況下,115和98 與REGEXP_SUBSTR各地試過,但最好我能做到是讓這個每個值: select regexp_substr('3:113:1:14','[^ :]+', 2, level)
from dual
connect by rege
我有一個字符串,var str =「Runner,The(1999)」; 使用substr(),我需要看看是否包含在str中,從7個字符開始,如果是,則刪除這些字符並將它們放在起始位置。事情是這樣的: if (str.substr(-7) === ', The') // If str has ', The' starting from 7 characters back...
{
st