Article View: borland.public.vdbase.data.sql
Article #1134Re: SQL SAVE TO option
From: Nedim Buyukmihci
Date: Thu, 16 Apr 1998 00:00
Date: Thu, 16 Apr 1998 00:00
25 lines
1343 bytes
1343 bytes
On 16 Apr 1998 16:18:08 GMT, "Tom Gleaton" <tgleaton@linkline.com> wrote: >Vdb 7.01 > >sql = "select * from customer where custno = :form.custno SAVE TO temp" > >How do I create a new database from the results of a select? >I don't see anything in OLH but recall someone here saying it is supported? >Is it SAVE TO or COPY TO ? What is syntax? Tom, I think one way to do it is to use the copyTable() command for the parent table and then you might be able to: insert into <new table> select * from... Or you could use DML before you establish the query to do a copy structure with production to <new table>. This way the table is ready for the insert command. There are limitations to the insert command, but I've had it work fine for many situations. Ned
Technical Details
Message-ID:
<353686c8.192733218@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd6955$04033e60$4a4c96d1@dict2>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,314cd95164e49b11 X-Google-Attributes: gidff5a1,public From: ncbuyukmihci@ucdavis.edu (Nedim Buyukmihci) Subject: Re: SQL SAVE TO option Date: 1998/04/16 Message-ID: <353686c8.192733218@forums.borland.com> X-Deja-AN: 344823215 Content-Transfer-Encoding: 7bit References: <01bd6955$04033e60$4a4c96d1@dict2> Mime-Version: 1.0 Reply-To: ncbuyukmihci@ucdavis.edu Content-Type: text/plain; charset=us-ascii Organization: PigByte DataοΏ½ Newsgroups: borland.public.vdbase.data.sql