我正在检索以下值,但不一致。我需要 GESTATIONAL AGE 之后的值:。有时它会接起来,有时它不会。以下是返回的值。有时它包含胎龄,有时则不包含。我不想要胎龄这个词。我只想要37w3d等。
Gestational Age: 37w3d
39w6d
39w0d
34w6d
41w0d
Gestational Age: 39w5d
我试图“调整” substr,但它无法始终如一地拾取字符串
我正在使用以下公式来获取我的值,但它不适用于所有值
select SUBSTR(a.note_text,
INSTR(a.note_text,'Gestational Age:')+17,
INSTR(
SUBSTR(a.note_text,INSTR(a.note_text,'Gestational Age:')+17) , 'd')+1 ) as GA
from
table