Subject | Re: [firebird-support] execute statement and in(variable) |
---|---|
Author | Martijn Tonies |
Post date | 2008-10-16T07:34:43Z |
Hello Olaf,
value,
not a text string. With [FOR] EXECUTE STATEMENT this should work fine.
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> The follow code doesn't work:Any message?
> Declare statement1 as string;You cannot have the INTO clause inside this string.
>
> Statement1 = "select abc from tabc where x =" || :inputparameter || " into
> :iabc "
> For Execute statement :statement1INTO :iabc
> Do beginOf course not.
> .
> end
>
> When I take the "for" into the statement-string, it doesn't work too.
> The reason for this statement is an input parameter (string) with a list.How "doesn't" it work?
> (100, 200, 300). This is also my second question:
>
> The in(..) statement doesn't work,
>if I delivered an internal variable soCorrent, IN ( ... ) cannot work with a variable cause a variable is a single
> for example:
>
> For select a from abc where b in (:inputparametervariable). But this works
> fine: For select a from abc where b in (100, 200, 300).
value,
not a text string. With [FOR] EXECUTE STATEMENT this should work fine.
> Please, can you give me a tip? The question 1 is described in theRead the syntax again ;-)
> firebird-documentation, but it doesn't work.
>I don't like to set moreMartijn Tonies
> input-parameters for my procedure, therefore this stringlist.
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com