Subject | Re: [Firebird-Architect] transient data sets and procedures |
---|---|
Author | Vlad Horsun |
Post date | 2005-02-16T07:51:05Z |
""Ann W. Harrison"" ...
...
CREATE PROCEDURE SP (...) RETURNS (...)
AS
DECLARE LOCAL TEMPORARY TABLE T1 (
ID INT NOT NULL PRIMARY KEY,
VAL VARCHAR(255));
BEGIN
...
END
We can use any other keywords instead of
LOCAL TEMPORARY TABLE
Regards,
Vlad
...
> Currently stored procedures declare variables in a sort of procedureIs this the same thing which i proposed when spoke about DLTT's ?
> preamble. They could declare the names of temporary data sets and the
> names and datatypes of their fields in the same fashion. During
> procedure compilation - from PSQL to blr - those declarations would be
> used to resolve references to temporary data sets - those defined
> within the procedure and those created outside the procedure.
>
> Not terribly elegant, but sufficient, I think.
CREATE PROCEDURE SP (...) RETURNS (...)
AS
DECLARE LOCAL TEMPORARY TABLE T1 (
ID INT NOT NULL PRIMARY KEY,
VAL VARCHAR(255));
BEGIN
...
END
We can use any other keywords instead of
LOCAL TEMPORARY TABLE
Regards,
Vlad