Article View: borland.public.vdbase.data.sql
Article #222Re: creating tables
From: pces
Date: Mon, 11 Jan 1999 00:00
Date: Mon, 11 Jan 1999 00:00
39 lines
2337 bytes
2337 bytes
> > Thanks Gary! Thanks Romain! I don't think I'd EVER think of
> > somethinglike the above code. It's so complicated, especially with the
> > extern function.
> ----
> Not so complicated. It _is_ only the externed function alone, the rest is
> only picking out the value it returns.
>
Oh.. well, I guess the word extern somewhat spooked me, seeing asI see it
mostly when calling complicated Windows API functions.
> > PS: I solved the temporary database file in the wrong directory problem.
> > I just
> > had to SET DATABASE TO before the Create table and everything worked!
> > Of course, I had to get rid of the Query and Database objects as I'd
> > figured
> > having them on the form might give me instability errors.
> ---
> Use <mydatabase>.executeSQL("create table...") if you want the table
> created in that directory, no need for all the stuff above. It's only
> needed if you want to place non-table files in that directory as well,
> like special .INI files to store the indexes for recreation, or readme
> files to explain what those files are and do, to avoid that some
> administrator deletes or moves them etc.
Ah. Thank goodness there's always an easier way of tackling
creating database files. I only just managed to figure out how
to create a table that contains a fieldname that's also a SQL
keyword. It took me an hour or more to figure out that
all I needed to do was the following:-
Create table "&tablename." ( ... ,;
"&tablename."."DESC" ... )
It was quite exhilarating to find that it worked. ;)
Thanks for the help!
Edmund
Technical Details
Message-ID:
<3699DA34.BBD494C4@netfront.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36905D71.848AE379@netfront.net> <36907CE3.6FAE22E6@ibm.net> <369097C1.615@netfront.net> <3690c578.1416826@forums.borland.com> <3692C120.3772F0FD@netfront.net> <MPG.10fd09f2c028af96989bbf@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,e4cce62cc4a643dc X-Google-Attributes: gidff5a1,public From: pces <pces@netfront.net> Subject: Re: creating tables Date: 1999/01/11 Message-ID: <3699DA34.BBD494C4@netfront.net> X-Deja-AN: 431197816 Content-Transfer-Encoding: 7bit References: <36905D71.848AE379@netfront.net> <36907CE3.6FAE22E6@ibm.net> <369097C1.615@netfront.net> <3690c578.1416826@forums.borland.com> <3692C120.3772F0FD@netfront.net> <MPG.10fd09f2c028af96989bbf@forums.inprise.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: pces@netfront.net Newsgroups: borland.public.vdbase.data.sql