我试图在sql Developer中运行以下查询,但我收到一个错误.我试图声明两个局部变量(var_num1和payDate),然后设置变量.有谁知道我做错了什么?我知道Oracle sql与sql Server有点不同.
DECLARE var_num1 number; payDate date; BEGIN var_num1 := 100; payDate := '10/1/2013' BEGIN SELECT * FROM Paycode WHERE PaycodeID = var_num1 and PaycodeDate = payDate; End; END;
Error report: ORA-06550: line 6,column 2: PLS-00428: an INTO clause is expected in this SELECT statement 06550. 00000 - "line %s,column %s:\n%s" *Cause: Usually a PL/sql compilation error. *Action: