Вы можете использовать REGEXP_SUBSTR
с шаблоном для сопоставления времени:
DECLARE
p_input VARCHAR2(4000) := 'Rajiv Verma 3/20/2018 3:48:39 Tom has told me to comment here';
p_comment VARCHAR2(4000);
BEGIN
p_comment := REGEXP_SUBSTR(
p_input,
'\d\d?:\d\d?:\d\d?(.*)$',
1, -- Start from the 1st character
1, -- Find the 1st match
NULL, -- No flags
1 -- Return the 1st capture group
);
END;
/
или в SQL:
SELECT REGEXP_SUBSTR(
your_string,
'\d\d?:\d\d?:\d\d?(.*)$',
1, -- Start from the 1st character
1, -- Find the 1st match
NULL, -- No flags
1 -- Return the 1st capture group
)
FROM your_table;
Документация по шаблонам регулярных выражений Oracle (perl) можно найти здесь .