Article View: borland.public.vdbase.data.sql
Article #603Re: Changing path to table
From: Steve Koterski
Date: Thu, 17 Sep 1998 00:00
Date: Thu, 17 Sep 1998 00:00
37 lines
2100 bytes
2100 bytes
On Wed, 16 Sep 1998 17:13:58 -0400, DALE <dale@catsoftware.com> wrote: >I am upgrading Dbase IV apps that run multiple instances of the data >tables on the same drive and the end user creates the directories and >installs the tables. In the dos versions, I used a macro to let the user >substitute the desired directory...Use &vpath\tablename. Is there a way >to do this using the SQL "select * from tablename". Now that I have the >app almost completed I find that I can't redirect the statement. I also >tried Set Path and apparently SQL doesn't see that. A table reference in a local SQL statement may take one of a number of different forms. One is just the table name: FROM Customer It could include the filename extension and be enclosed in quotation marks: FROM "Customer.dbf" It could be prefixed with the name of a BDE alias (particularly when multiple tables from different directories are used): FROM ":DBDEMOS:Customer.dbf" And, it could include a drive and directory reference: FROM "c:\MyApp\MyData\Customer.dbf" In the case of these two latter variations, the whole table reference (including BDE alias name or drive/directory) must be enclosed in quotation marks. ////////////////////////////////////////////////////////////////////////// Steve Koterski "I don't work for any company named Inpoop." Technical Publications -- Steve Koterski, 1957-? INPRISE Corporation http://www.inprise.com/delphi
Technical Details
Message-ID:
<36015998.33462951@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36002A16.90317001@catsoftware.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,b88683d365487d56 X-Google-Attributes: gidff5a1,public From: skoterski@NOSPAMinprise.com (Steve Koterski) Subject: Re: Changing path to table Date: 1998/09/17 Message-ID: <36015998.33462951@forums.inprise.com> X-Deja-AN: 391890223 Content-Transfer-Encoding: 7bit References: <36002A16.90317001@catsoftware.com> Content-Type: text/plain; charset=us-ascii Organization: INPRISE Corporation, Technical Publications Mime-Version: 1.0 Reply-To: skoterski@NOSPAMinprise.com Newsgroups: borland.public.vdbase.data.sql