Postgresql – split with multiple delimiters sql
I have a use case where i need to split strings by multiple delimiters. client_id blah_blah bleh-bleh select client_id ,split(client_id,'-')[0] col1` ,split(client_id,'-')[1] col2 from mytbl returns Client_id col1 col2 bleh-bleh bleh bleh I have been trying various permutations to get…