On Jan 22, 11:15 pm, "Peter H. Coffin" <
hell...@ninehells.com> wrote:
> On Sun, 22 Jan 2012 19:28:15 -0800 (PST), Kdawg wrote:
>
> > In an sqx file, I am able to declare a standard cursor. But the
> > database option is failing.
>
> > Example:
> > DECLARE STDDEMO CURSOR DATABASE source USER userid USING <pwd>
> > FOR SELECT person_id FROM userid.person
> > WHERE name = :sName;
>
> > The compiler returns:
> > SQL0104N An unexpected token "DATABASE" was found
> > following "CURSOR". Expected tokens may include:
> > "FOR".
>
> And this is on a system with version of at least 9.1? The paragrph below
> Listing 17 says this method exists since 9.1.
>