Article View: borland.public.vdbase.data.sql
Article #482Re: Variable in sql file
From: Bowen Moursund (TeamB)
Date: Sat, 05 Dec 1998 00:00
Date: Sat, 05 Dec 1998 00:00
18 lines
1152 bytes
1152 bytes
>I need to run a sql flie that uses a variable field. The code is; > >SELECT Cust.CUSTOMER_N, :v.field >FROM "customer.dbf" Cust, "Variables.dbf" v I don't know if this can be made to work as you want. However, you could dynamically build the sql property of the relevant query object, e.g.: qCust = new query() qCust.sql := "select CUSTOMER_N," + qVariables.rowset.fields["FIELD"].value + ; " from CUSTOMER" ____ 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:
<74caik$3h314@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36695FB7.2CD700E3@ONeilComputing.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,c04ed0e0babc0dba X-Google-Attributes: gidff5a1,public From: "Bowen Moursund (TeamB)" <teamb@opto-pps.com> Subject: Re: Variable in sql file Date: 1998/12/05 Message-ID: <74caik$3h314@forums.borland.com> X-Deja-AN: 419050945 Content-Transfer-Encoding: 7bit References: <36695FB7.2CD700E3@ONeilComputing.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: DataTech Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql