$name = array{'yuan','wang','li'};$price = array{'10','21','5'};怎么更新这三条数据?$sql = "update tabel set price=$price where name = $name";
只能循环,一条一条更新。sql层面不能写在一起。
用foreach遍历$name么?$price是不是也要遍历呢