【发布时间】:2020-10-28 17:50:58
【问题描述】:
我在 Postgres 中有一个如下所示的列,我只想拆分关键字旁边的字符。在下面的例子中,关键字是
“病人”
Patient Mark has tested positive
New update for Patient Wilson
Discharged - Patient Thompson
我需要的结果列应该是这样的
Mark
Wilson
Thompson
【问题讨论】:
-
您的样本值都不包含关键字
product- 您的意思是Patient吗? -
关键字可能是“病人”
-
对不起,是关键字耐心,我已经更新了
标签: postgresql substring string-matching