Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ProC question
Hi Try so
EXEC SQL BEGIN DECLARE SECTION;
varchar fecha [10];
EXEC SQL END DECLARE SECTION;
. . .
EXEC SQL SELECT <field name> INTO :fecha FROM <database> WHERE ....;
printf("fecha mia %s \n",fecha);
. . .
maybe it is what you want.
bye Federico
Andrea Pallotta wrote:
>
> Hi everybody!!
>
> The question seems to be simple for you...
>
> In a C program with SQL calls, i have a variable to be filled with the
> content of a column. The column is a date, of course.
>
> Could you help me, with an example, to do this??
>
> Thanks in advance
>
> --
> Andrea Pallotta
> DIGITAL Italy
> Gruppo di Sviluppo ( Development Team )
-- Federico Jose Buldin e-mail: buldin_at_fzi.deReceived on Sun May 25 1997 - 00:00:00 CDT