0
不能返回ResultSet請看看下面的代碼:phpMyAdmin的錯誤:在給定上下文在MySQL
DELIMITER $$
DROP PROCEDURE `mostPopular`
CREATE PROCEDURE `mostPopular`()
BEGIN
DROP view if exists mostRec;
create view mostRec as select count(*) as ord,course_code from cms.courses_viewed group by course_code;
select course_name from course join mostRec on course.course_code=mostRec.course_code order by ord desc;
END
這個代碼在MySQL工作臺,但它並沒有在phpMyAdmin工作。 它打印「Cannot return a ResultSet in the Given Context in mysql
」。有誰知道爲什麼會發生這種情況?