このストアド プロシージャを作成しようとすると、エラーが発生します。
PLS-00428: このSELECT文にはINTO句が必要です
コード:
CREATE OR REPLACE PROCEDURE FindDb(
P_BookId IN BOOKMASTER.BookId%TYPE,
p_PublisherCode OUT BOOKMASTER.PUBLISHERCODE%TYPE,
p_ISBNCode OUT BOOKMASTER.ISBNCODE%TYPE,
p_BookName OUT BOOKMASTER.BOOKNAME%TYPE,
p_BookType OUT BOOKMASTER.BOOKTYPE%TYPE,
p_BookLevel OUT BOOKMASTER.BOOKLEVEL%TYPE,
p_BookCategory OUT BOOKMASTER.BOOKCATEGORY%TYPE,
p_AuthorNames OUT BOOKMASTER.AUTHORNAMES%TYPE,
p_PublishedYear OUT BOOKMASTER.PUBLISHEDYEAR%TYPE,
p_CostPrice OUT BOOKMASTER.COSTPRICE%TYPE,
p_MRP OUT BOOKMASTER.MRP%TYPE,
p_BookImage OUT BOOKMASTER.BOOKIMAGE%TYPE)
AS
BEGIN
SELECT PUBLISHERCODE, ISBNCODE, BOOKNAME,BOOKTYPE,BOOKLEVEL,BOOKCATEGORY
,AUTHORNAMES,PUBLISHEDYEAR,COSTPRICE,MRP,BOOKIMAGE
FROM BOOKMASTER WHERE BOOKID = p_BookId;
END FindDb;
/