T
T
trevoga_su2015-08-03 13:44:19
MySQL
trevoga_su, 2015-08-03 13:44:19

Can mySql simulate a table from a php array?

ridonly server.
It is necessary to make a banal sample for managers.
One of the table fields stores ID's, which are registered only in php:

...
array("title" => "Новая", "value" => "0"),
array("title" => "Выполнена", "value" => "1"),

how to get the value of identifiers as beautifully as possible with sql selection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skahin, 2015-08-04
@pihel

SELECT * FROM T WHERE (title, value) IN(('New', '0'), ('Done', '1'));
etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question