我有一个程序:
CREATE OR REPLACE PROCEDURE recommend_book(
in_ID_user IN number
)
IS
--zmienne
zmienna1 number(9,0);
BEGIN
SELECT COUNT(GENRE)
INTO zmienna1
FROM BOOKS
WHERE ID_BOOK IN(SELECT ID_BOOK
FROM SIGNATURES
WHERE SIGNATURE IN (SELECT SIGNATURE
FROM ORDERS
WHERE ID_READER=in_ID_user)
);
END;
/
我收到错误
PL-00428:此 SELECT 语句中需要一个 INTO 子句
您能帮我确定这里缺少什么/出了什么问题吗?