R: PL/SQL & sysdate

From: Marco Nicolazzo <marco.nicolazzoNO_at_SPAMniva.it>
Date: 2000/06/23
Message-ID: <KECtMXS3$GA.162_at_news1.galactica.it>#1/1


What are you using? In my environment your code works perfectly.

Marco Nicolazzo
OCP DBA <blank214_at_my-deja.com> wrote in message 8ivkf1$s18$1_at_nnrp1.deja.com...
> I want to get the current year from the database & convert it to a
> number. The PL/SQL block compiles, but hangs when I try to execute it.
> The following is the problem statement:
>
> select to_number(to_char(sysdate, 'YYYY'))
> into thisyear from dual;
>
> What am I doing wrong?
>
> Thanks in advance - Jennifer
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Fri Jun 23 2000 - 00:00:00 CEST

Original text of this message