Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

date as column name

AlexAndFeb 16 2011 — edited Feb 16 2011
hi
i try use "DATE" as column name
i know what this isn't good, but it's interesting moment =)
create table t( "DATE" date);
insert into t values (sysdate);
sql query work fine
select "DATE" from t
16.02.2011 15:38:25
but in plsql block not work
declare
 t date; 
begin
    select t."DATE"
       into t from ttt;
    dbms_output.put_line(t);
end; 
any idea why?

alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2011
Added on Feb 16 2011
21 comments
11,450 views