D
D
DunkanMaklaut2020-07-23 12:52:32
Java
DunkanMaklaut, 2020-07-23 12:52:32

How to do a smart lookup on a table?

It is necessary to make such a search: the choice of the column by which you want to search and the search field itself. How to implement such a search so that if you enter not completely, but for example a part of a word, then the search searches for all the fields that have this part?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-23
@NeiroNx

If you do it "on the knee" then in SQL there is a comparison instruction LIKE and compare with the string sum of all fields separated by a space.
The bottom line - all fields in 1 line and check the occurrence of the desired in this line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question