尝试创建此存储过程时,出现错误:
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;
/