21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Notes:<br />

DML statements<br />

Because this block has input parameters, it has to be prepared first. Then the parameters can be set<br />

and the block executed. It depends on the client software how this must be done and even if it is<br />

possible at all – see the notes below.<br />

Our last example takes two integer values, smallest and largest. For all the numbers in the range<br />

smallest .. largest, the block outputs the number itself, its square, its cube and its fourth power.<br />

execute block (smallest int = ?, largest int = ?)<br />

returns (number int, square bigint, cube bigint, fourth bigint)<br />

as<br />

begin<br />

number = smallest;<br />

while (number

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!