query() public method

执行查询 返回数据集
public query ( string $str, array $bind = [] ) : mixed
$str string sql指令
$bind array 参数绑定
return mixed
 public function trash($tableName, $id, $status)
 {
     $db = new db_pdo();
     $db->query("UPDATE " . $tableName . " SET status = " . $status . " WHERE id = ?", $id);
 }