I have the following query
SELECT email_text INTO v_result
FROM test.record_notification
WHERE record_notification_id = p_recordnotification_id;
which returns the below result
[br/] [br/] [br/]Record Id : Record Name : Title Id : Title Name[br/][ul]http://localhost:8080/myproject/ShowRecords.action?recordsVO.recordId=3324&recordId=3324&status =Record Requested >3324 : DEV: test contract : 2448730 : Titanic[/ul]
However I want to add "[th]" "[/th]" in the result above so that the final string becomes
[br/] [br/] [br/][th]Record Id : Record Name : Title Id : Title Name[br/][/th][th]http://localhost:8080/myproject/ShowRecords.action?recordsVO.recordId=3324&recordId=3324&status =Record Requested >3324 : DEV: test contract : 2448730 : Titanic[/th]
please note that there can be multiple records like this .
Please suggest a way in PostgreSQL