4
I have a database and would like to know how I do to search for the data by typing the full result using Where
Example:
ID NOME CODIGOS
1 | Joao | 9714,51,100
2 | Maria | 50,9714,88100
Ai wanted to return a Where searching for CODE
Search: 100
Show: Joao
Search: 9714
Show: Joao, Maria
I did so:
SELECT * FROM usuarios WHERE codigo like '%100%'
But the 100 searched ta showing all the results that has 100, then returns 88100 and 100
What can I be doing?
if a reply served you then mark it as accepted, see how and why in https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/6985#6985
– user60252