mysql - Filter with an array -


i know can search id array using id in ($array) like

$ids = join(',',$galleries);   $sql = "select * galleries id in ($ids)"; 

can done in reverse there's column of ids stored in table , pass single id condition in clause?


Comments

Popular posts from this blog

sql server - NHibernate incorrectly creating ManyToMany table - Cannot define PRIMARY KEY constraint on nullable column error -

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -