📜  php pdo 随机多次插入查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.330000             🧑  作者: Mango

代码示例1
function updateMultipile($table, $data = array())
{
    $db = DBLink::getInstance();
    foreach($data as $id => $update)
    {
        $sql = "UPDATE ?n SET ?u WHERE location_id = ?i";
        $db->query($table,$update,$id); 
    }
}