Article View: borland.public.interbase.sql
Article #990Re: temporal table for stored procedure
From: Bill Todd
Date: Fri, 06 Apr 2007 15:36
Date: Fri, 06 Apr 2007 15:36
19 lines
1471 bytes
1471 bytes
aleplgr wrote: > > Hi! Is it possible in IB 7.5 to work in a stored procedure with a > temporal table created using a SELECT? I need something like this: > > SELECT Col1, Col2, Col3 FROM TABLE1 Where Contition1 AND Condtion2 > AND ConditionN ORDER BY Col1, Col3 > AS TEMP > > In the procedure I need the table to be in that order and I can't > work with the original table TABLE1 because I need to preprocess it Yes. Create a Global Temporary Table as part of the database then INSERT into it in the stored procedure. See CREATE TABLE in the Language Reference. -- Bill Todd (TeamB)
Technical Details
Message-ID:
<46165aee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<461651ac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,ea63e4de71f1ac2a
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill Todd" <no@no.com>
Subject: Re: temporal table for stored procedure
Newsgroups: borland.public.interbase.sql
References: <461651ac$1@newsgroups.borland.com>
Organization: The Database Group, Inc.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
NNTP-Posting-Host: 216.207.211.19
Message-ID: <46165aee$1@newsgroups.borland.com>
Date: 6 Apr 2007 07:36:30 -0800
X-Trace: newsgroups.borland.com 1175870190 216.207.211.19 (6 Apr 2007 07:36:30 -0800)
Lines: 19
X-Authenticated-User: btodd
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail