Subject Re: [firebird-support] execute statement and in(variable)
Author Martijn Tonies
Hello Olaf,

>I've a little problem with this:
>
>CREATE PROCEDURE P_TEST(
>INPUTPARAM1 varchar(50))
>returns(
>menge double precision)
>AS /**/
>declare variable statement1 varchar(100);
>BEGIN
> statement1 = 'Select Menge from auftraege where auftrag_pos in('||
>inputparam1 || ')';
> for execute statement :statement1 into :menge do suspend;
>END
>
>The result is: Precompiler Error: parsing error - execute.
>Any ideas?

This isn't a Firebird error, are you using a tool that doesn't know
about [FOR] EXECUTE STATEMENT?

Martijn Tonies
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