我是 oracle 的新手,我正在做一个项目
错误的绑定变量。
我该怎么办?任何帮助将不胜感激
代码:
DECLARE
U_ID VOTERS.V_ID%TYPE;
PASS VOTERS.PASSWORD%TYPE;
CURSOR LOGIN_CUR IS
SELECT V_ID,PASSWORD FROM VOTERS;
BEGIN
SELECT W_ID INTO :WID FROM VOTERS WHERE V_ID=:V_ID;
BEGIN
OPEN LOGIN_CUR;
LOOP
FETCH LOGIN_CUR INTO U_ID,PASS;
IF :V_ID=U_ID AND :PASSWORD=PASS THEN
OPEN_FORM ('........');
EXIT WHEN LOGIN_CUR%FOUND;
END IF;
END LOOP;
CLOSE LOGIN_CUR;
END;
END;