SELECT
case when instr(colaa,'-')=0 then colaa else
SUBSTR(colaa, 1, INSTR(colaa, '-', -1) - 1) end AS extracted_content
FROM
(
select '我是-这是1000-1334AAA-334好' as colaa from dual
union all
select '好的' as colaa from dual) t
放在单元格处理行不行?
MAPARRAY(VALUE("aa",1),REPLACE(item,"-"+INDEXOFARRAY(SPLIT(item,"-"),count(SPLIT(item,"-"))),""))
MAPARRAY(VALUE("aa",1),REPLACE(item,"-"+INDEXOFARRAY(SPLIT(item,"-"),count(SPLIT(item,"-"))),""))