Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
You tried to use a SELECT statement without a cursor, but the statement cursor returns more than one row. Only a single row
SELECT statement can be used in this context.