Article View: borland.public.vdbase.data.sql
Article #1104Re: Empty field in sql query
From: Romain Strieff [TeamB]
Date: Sat, 02 May 1998 00:00
Date: Sat, 02 May 1998 00:00
36 lines
1989 bytes
1989 bytes
In article <01bd7536$79b17a40$16f3f3c2@pserver>, mario@mbox.medianetis.it
grudgingly admits...
> Is possible in a SELECT instruction formatting numeric fields to _0_ if
> this same fields are empty ?
-----
Replace them with 0 if they are NULL and set the default value for that
field to be 0 _in_ the table. (MODI STRU)
> I have tested with:
> SELECT MyField {0} from MyTable
> but if language driver of BDE is DB850IT this instruction generate empty
> fields.
> If language driver of BDE is Paradox intl this instruction generate 0 in
> numeric value,
> (correctly) but with this language driver name of field are truncated (only
> 10 characters) and underscore is added in place of space when rowset is
> generated.
>
> There is any other type of SELECT instruction for me ?
> Thank
>
> P.S. Romain, sorry, i give too many work form TeamB, but my applications is
> various and very large and conversion is still difficult.
> I hope this discussions are very useful for any VDB user.
----
Level 7 tables just offer true NULL support just like any other DBMS in
the world did from the beginning, it's only us that have to get
accustomed to it.
--
Romain Strieff [TeamB]
Want quick help? Check previous Q and A at:
http://forumsearch.borland.com:88/ and TIs at
http://www.borland.com/VdBASE/vdbprod.html
Technical Details
Message-ID:
<MPG.fb52af7a420f8d298aca9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd73a9$f0659ba0$12f3f3c2@pserver> <MPG.fb28e9fce712ffd98ac7c@forums.borland.com> <01bd745c$b2a7da40$14f3f3c2@pserver> <MPG.fb2d66a3a0118aa98ac96@forums.borland.com> <01bd7536$79b17a40$16f3f3c2@pserver>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,bbdcd10171d882f5 X-Google-Attributes: gidff5a1,public From: Romain@Do.not.reply.via.e-mail (Romain Strieff [TeamB]) Subject: Re: Empty field in sql query Date: 1998/05/02 Message-ID: <MPG.fb52af7a420f8d298aca9@forums.borland.com> X-Deja-AN: 349578307 References: <01bd73a9$f0659ba0$12f3f3c2@pserver> <MPG.fb28e9fce712ffd98ac7c@forums.borland.com> <01bd745c$b2a7da40$14f3f3c2@pserver> <MPG.fb2d66a3a0118aa98ac96@forums.borland.com> <01bd7536$79b17a40$16f3f3c2@pserver> Organization: TeamB Reply-To: teamb@opto-pps.com Newsgroups: borland.public.vdbase.data.sql