3
I’m having a problem with a Mysql query and I’m looking for help. Suppose I have many lines in the PROCESSES column and one of them is like this:
IBAMAPROCUR: DF00025372 ADRIANA MAIA VENTURINIAPDO: JOSE DOS
I want to check if there are 25372 caractares on that line, if there is, I want to get 10 characters before the spot and 10 characters after. And check if in this range there is the acronym DF. If it exists, it shows the line. This way I would be sure that it is a number of OAB Lawyer. Someone would give me a help to assemble a select
for that reason?
How is the content of the column
PROCESSOS
? The way you’re describing the problem, and considering how the @Pasch solution doesn’t suit you, I think you need to first normalize your data, in a stride offline, for a relational model; once this is done, the solution to your problem will probably be quite simple.– user25930
Eh, that’s what I did... I thought there was a way to do it directly in the query because it would be, I think, faster due to the selected search algorithms that SQL integrates. Thank you
– Hadson Marcelo Gomes