Subject | AW: [firebird-support] statement and composite variable names |
---|---|
Author | Olaf Kluge |
Post date | 2012-05-23T10:41:31Z |
Hello Helen,
F1). It should be the value of the variable.)
At the moment I have realized it with an separate stored procedure (check
the value) and returning okay or not. But I must call it 6 Times.
If there is another solution, please help.
Thank you all.
[Non-text portions of this message have been removed]
>...Thank you, but I can see only the name of the variable in my stmtxt (.name =
>declare variable fname varchar(31);
>...
>i = 1;
>while (i< 7) do
>begin
>fname = 'F' || cast (i as char);
>idexists = 0;
>stmtxt = 'select 1 from rdb$database where exists(SELECT * FROM
>RDB$RELATION_FIELDS
>WHERE RDB$RELATION_NAME = T_DT
>and RDB$FIELD_NAME = ' || fname;
>execute statement stmtxt into :idexists;
>if(idexists = 0) then
>begin
>--.
>break;
>end
>i = i + 1;
>end
>./hb
F1). It should be the value of the variable.)
At the moment I have realized it with an separate stored procedure (check
the value) and returning okay or not. But I must call it 6 Times.
If there is another solution, please help.
Thank you all.
[Non-text portions of this message have been removed]