I am creating a kind of application for dictionaries, and I have a table for storing words, as shown below:
id | surface_form | examples
-----------------------------------------------------------------------
1 | sounds | {"It sounds as though you really do believe that",
| | "A different bell begins to sound midnight"}
Where surface_formhas type CHARACTER VARYINGand examplesis an array fieldCHARACTER VARYING
Since examples are automatically generated from another API, it may not contain the exact "surface_form". Now I want to contain in the examples only sentences containing the exact form_surface. For example, in this example, only the first sentence is supported, since it contains sounds, the second should be omitted, since it contains only sound.
The problem is that I am stuck in writing a query and / or plSQL stored procedure to update a column examplesso that it has only the right sentences.
source
share