Posts by lirac • 51 points
1 post
-
5
votes5
answers26385
viewsA: What is the best practice to know if an Row exists in a SELECT in Mysql?
The ideal would be: SELECT usuario FROM tabela WHERE usuario = 'exemplo'; Considering that the 'user' field will not be repeated (it will be unique or Primary key) and there will be an index created…