I have the holiday table whose description are
Name Null? Type
HOLIDAYDATE DATE
DESCRIPTION VARCHAR2(20)
which contains data are
HOLIDAYDA DESCRIPTION
--------- --------------------
19-JAN-11 to
17-JAN-11 to
10-JAN-11 a
here is my code :
DECLARE a date;
SELECT holidaydate
INTO a
FROM holiday
WHERE holidaydate = SYSDATE;
DBMS_OUTPUT.PUT_LINE(a);
i am receiving error like this.
ERROR at line 2: ORA-06550: line 2, column 1: PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor
Can anyone tell me what is the problem in my code?