PL/SQL: how do i prompt user input in a procedure?
问题 This is a question about a small part of a large project I'm doing. I tried the following but I just get the two errors below it: SET SERVEROUTPUT ON CREATE OR REPLACE PROCEDURE HELLO AS DECLARE variable1 NUMBER(1); variable2 CHAR(1); BEGIN DBMS_OUTPUT.PUT_LINE('Hello World'); variable1 := &please_enter_1_or_0; variable2 := &please_enter_y_or_n; END; / Error(2,5): PLS-00103: Encountered the symbol "DECLARE" when expecting one of the following: begin function pragma procedure subtype type