Article View: borland.public.vdbase.data.sql
Article #1237Re: Read-only rowset with SQL
From: Bowen Moursund
Date: Fri, 13 Mar 1998 00:00
Date: Fri, 13 Mar 1998 00:00
72 lines
2409 bytes
2409 bytes
>Why JOIN query generate read-only rowset ?
See the online help topic 'local sql,restrictions'.
>And i can resolve this problem ?
You can link a set of native tables (.DBF and .DB) using the indexName,
masterRowset, and masterFields properties of the rowset objects of the
tables' query objects. Here follows an example of a datamodule comprised of
three related tables from Visual dBASE\Samples\Mugs\Tables:
** END HEADER -- do not remove this line
//
// Generated on 12/26/1997
//
class demoDataModule of DATAMODULE
this.CUSTOMER1 = new QUERY()
this.CUSTOMER1.parent = this
with (this.CUSTOMER1)
left = 1.4286
top = 0.3182
sql = 'select * from "Customer.dbf"'
active = true
endwith
with (this.CUSTOMER1.rowset)
indexName = "LAST NAME"
endwith
this.INVOICE1 = new QUERY()
this.INVOICE1.parent = this
with (this.INVOICE1)
left = 6.2857
top = 1.8182
sql = 'select * from "Invoice.dbf"'
active = true
endwith
with (this.INVOICE1.rowset)
indexName = "CUSTOMER ID"
masterRowset = parent.parent.customer1.rowset
masterFields = "Customer ID"
endwith
this.LINEITEM1 = new QUERY()
this.LINEITEM1.parent = this
with (this.LINEITEM1)
left = 11.2857
top = 3.3182
sql = 'select * from "Lineitem.dbf"'
active = true
endwith
with (this.LINEITEM1.rowset)
indexName = "INVOICE ID"
masterRowset = parent.parent.invoice1.rowset
masterFields = "Invoice ID"
endwith
this.rowset = this.customer1.rowset
endclass
__
Bowen Moursund (TeamB)
bowenNOSPAM@nerds.com
http://www.mindspring.com/~bowenm/datatech.htm
Try these help resources:
http://forumsearch.borland.com:88
http://www.dejanews.com/home_ps.shtml
Technical Details
Message-ID:
<6ecgea$goe7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6ec4f5$g5n31@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,aa2c007b23559cb1 X-Google-Attributes: gidff5a1,public From: "Bowen Moursund" <teamb@opto-pps.com> Subject: Re: Read-only rowset with SQL Date: 1998/03/13 Message-ID: <6ecgea$goe7@forums.borland.com> X-Deja-AN: 333836448 Content-Transfer-Encoding: 7bit References: <6ec4f5$g5n31@forums.borland.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