Good evening! I have a simple database that stores xml data, in this case the author of the book and its text. The question is how to perform a search like LIKE, so as not to write the full content of the book or completely the author. At the moment I am doing this request:
SELECT * from storage where (xpath('//book/author/text()', documentcontent))[1]::text = '孝芯谢褋褌芯泄 袥械胁 袧懈泻芯谢邪械胁懈褔'::text;
containsfunction. - Alexander Petrov