Article View: comp.lang.pascal.delphi.databases
Article #79Re: Insert Query and Integer fields (Pdox Table)
From: grozev
Date: Tue, 29 Dec 1998 00:00
Date: Tue, 29 Dec 1998 00:00
49 lines
2091 bytes
2091 bytes
In article <36889365.98B81D98@NOSPAM.som.nl>, ftrentel@NOSPAM.som.nl wrote: > Hello all, > > Has anyone solved this: > > When I use an Insert Query on a Paradox Table like > > Insert into "DestTable" > Select > stringfield, > integerfield, > anotherfield, > 0 as integerfield2, > etc > From "anothertable" > > Then it won't work unless: > 1. I select as many fields as there are in "DestTable" > 2. The DestTable Integer fields are of Type "Number" > > the first problem i think i can live with, but the second i'm worried > about. > Also I want to insert a null value into an integer field. (which is a > problem) > > Greetings, > Frans --------------------------------------------- Hi Frans, Try this INSERT INTO Dest_table (field1, field2.... list exactly the fields) SELECT field1,field2..... FROM AnotherTable WHERE Search_Condition; I think the 'NUMBER' type is for float values. Use 'SHORT' or 'LONG NTEGER' for an Integer field. Use NULL to insert a null value. Best regerds / Grozev -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<76bc2g$5tt$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36889365.98B81D98@NOSPAM.som.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff75c,61d915cad5e332a6 X-Google-Attributes: gidff75c,public X-Google-Thread: ffff5,61d915cad5e332a6 X-Google-Attributes: gidffff5,public From: grozev@npc.omega.bg Subject: Re: Insert Query and Integer fields (Pdox Table) Date: 1998/12/29 Message-ID: <76bc2g$5tt$1@nnrp1.dejanews.com> X-Deja-AN: 426838919 References: <36889365.98B81D98@NOSPAM.som.nl> X-Http-Proxy: 1.0 ndk.npc.omega.bg:8080 (Squid/1.1.22), 1.0 zztop.omega.bg:8080 (Squid/2.1.PRE4), 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 212.50.5.141, 212.50.5.130, 194.25.204.125 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Dec 29 19:54:57 1998 GMT Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.desktop X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Update a; Windows 95)