V
V
Vasily Petrov2018-03-04 22:30:13
PHP
Vasily Petrov, 2018-03-04 22:30:13

How to get from the database ALL values ​​of column "A" WHERE "B" = "far"?

There is something similar:
SELECT А FROM table WHERE В = far
This query produces only 1 matching row.
How to get everything?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MrKMV34, 2018-03-04
@MrKMV34

Most likely only one line and matches the condition, or alternatively you are using the wrong function to get the result, try PDO fetchAll or fetch_all

C
cicatrix, 2018-03-05
@cicatrix

Did you watch? Your request does exactly what is described in the title. If the query produces only one row, then there is only one row in the table and there is one with a satisfying condition ( B = far)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question