Answer the question
In order to leave comments, you need to log in
How to get data from one field?
"SELECT * FROM toys_config WHERE var='min_zakaz' AND var='min_zakaz_region'"
I can't get the data, if I specify this, then all the rules go to "SELECT * FROM toys_config WHERE var='min_zakaz'
and I need only one field and two records .
Answer the question
In order to leave comments, you need to log in
"SELECT `pole` FROM `toys_config` WHERE `var`='min_zakaz' AND `var`='min_zakaz_region'"
SELECT * FROM `toys_config` WHERE `var`='min_zakaz' OR var='min_zakaz_region';
SELECT * FROM `toys_config` WHERE `var` IN ( 'min_zakaz', 'min_zakaz_region' );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question