N
N
Nikolai Chuprik2019-06-09 01:03:40
SQL
Nikolai Chuprik, 2019-06-09 01:03:40

How to find a specific substring in any field of any table in the database?

We need to find out where in the database a certain substring is mentioned. The names of the table and the field where the mention may occur are unknown.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Sviridov, 2019-06-09
@dimuska139

If this is how you decided to implement the search in your service, then I strongly do not advise it. Yuzai is better than Sphinx. But if it’s completely pinned down, then you’ll have to fence the bike for a specific DBMS. You get a list of tables, cycle through them, get a list of columns in each, and so on. This will be slow and not universal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question