php - Dynamic subqueries -


i have following problem. have table atr_product contains columns atr_id, product_id.

think registers are:

enter image description here

i send atr_id array ws in php. example have atr_ids = (1,2,3);. so, when receive these atr_ids, query should return product_id 200.

if send atr_ids = (1), query should return product_id = (200,201) easy, atr_ids dynamic, don't know how many ids ws receive.


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -