我有这段代码来调用存储过程,并从中选择标志“ $ query”,除最后一行外,所有代码运行正常
$query_free_users=$this->db->query("CALL procedure_get_free_users_for_time(".$a.",".$b.",'".$c."');");
$row_free_users=$query_free_users->row();
$office_user_id=$row_free_users->user_id;
mysqli_next_result( $this->db->conn_id );
$query_free_users->free_result();
$query = $this->db->query("CALL procedure_check_for_free_time(".$a.",".$b.",'".$c."',".$d.", @flag);select @flag;");
我得到的错误
错误号:1064 您的SQL语法有误;检查与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第1行的'select @flag'附近使用 CALL procedure_check_for_free_time(1,1,'2019-6-6 10:00:00',7,@flag);选择@flag;