-1
I have the following table:
|id|nome |
|1 |Lucas Santos da Silva|
|2 |Igor Julião Gonçalves|
|3 |Mário Marques Silva |
|4 |David Silva |
How could I catch all the people who have Silva in the name?
$string = "Silva";
$sql = "SELECT * FROM usuarios WHERE nome IN('{$string}');
I couldn’t use the operator
LIKE?– Cmte Cardeal
Could inform which is the database, because there is an artificial that can significantly improve the query time and each BDMS implements it in a way.
– Augusto Vasques
the name of the bank is
cde3.– Afuro Terumi
It is difficult to present a really efficient solution without knowing the name of the database engine, I googled cde3 database I found nothing. The solutions presented have time complexity O(n x m) where n is the number of records and m is the total of characters to be searched as a solution using natively Inverted index has time complexity O(log n).
– Augusto Vasques
Ahhh, I thought you were asking the name of my database.
– Afuro Terumi