Article View: borland.public.vdbase.data.sql
Article #298Re: Bunch of SQL open
From: David M. O'Neil
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
28 lines
1465 bytes
1465 bytes
When I add "save to" to the line as follows; select sum((rate* N_of_pages)+ price) tot_inv, sum(Etax) t_Etax from bill where bill_n= :t_recno save to temp_1 the very next line; a= tot_inv gives the error, "Variable undefined. TOT_INV." I didn't have this problem before adding the "save to" to the statement. What's the problem? David > > > You can use the SAVE TO option of SELECT to specify an actual on-disk table > name, or use the ALIAS option to specify the alias of the open result set. > Either way, just ensure that you close the result with the USE command when > you're finished with it. That should also close any temporary tables as > well. > ____ > Bowen Moursund (TeamB) > bowen at nerds dot com > http://lonestar.texas.net/~moursund/ > Try this help resource: > http://www.dejanews.com/home_ps.shtml
Technical Details
Message-ID:
<3687C1C7.C5ADFCE2@ONeilComputing.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36819874.659232AA@ONeilComputing.com> <75u0jt$fdm3@forums.borland.com> <36850D4F.AACE8665@ONeilComputing.com> <7634mg$iu24@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,b11ae58a0bc6f72d X-Google-Attributes: gidff5a1,public From: "David M. O'Neil" <David@ONeilComputing.com> Subject: Re: Bunch of SQL open Date: 1998/12/28 Message-ID: <3687C1C7.C5ADFCE2@ONeilComputing.com> X-Deja-AN: 426494878 Content-Transfer-Encoding: 7bit References: <36819874.659232AA@ONeilComputing.com> <75u0jt$fdm3@forums.borland.com> <36850D4F.AACE8665@ONeilComputing.com> <7634mg$iu24@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: OCC Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql