Answers for "select id in array mysql"

SQL
1

select values from mysql using php array of ids

$sql = 'SELECT * 
          FROM `table` 
         WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';
Posted by: Guest on June-27-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language