Ho stringhe come "keepme: cutme" o "string-without-separator" che dovrebbero diventare rispettivamente "keepme" e "string-without-separator". Questo può essere fatto in PostgreSQL? Ho provato:Taglia la stringa dopo la prima occorrenza di un carattere
select substring('first:last' from '.+:')
Ma questo lascia il :
e non funziona se non c'è :
nella stringa.