Question about NULL's
Posted in 2000
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<br>I have the following problem: A table in my database has some constraint
checks. There are also fields with only one space in it (' '). The output
from dbschema is quite correct.
<br>Output from dbschema:
<br>...
<br> check (benz IN ('N' ,'S' ,'D' ,'B' ,'P' ,' ' )),
<br> check (kat IN ('G' ,'U' ,' ' )),
<br> check (heck IN ('F' ,'S' ,'G' ,'W' ,' ' ,'L' )),
<br> check (antr IN ('A' ,'V' ,'H' ,' ' )),
<br> check (blei IN ('B' ,' ' )),
<br> check (moto IN ('O' ,'D' ,'R' ,'Z' ,' ' )),
<br> check (abga IN ('1' ,'2' ,'A' ,'B' ,'C' ,' ' )),
<br>...
<p>But - if I test the same table in dbaccess (Info - Constraint -Checks)
I get the following:
<br>Output from inside dbaccess:
<br>Constraint name Value
<br>c928_8451 (benz
IN ('N' ,'S' ,'D' ,'B' ,'P' ,' ' ))
<br>c928_8453 (kat
IN ('G' ,'U' ,' ' ))
<br>c928_8469 (heck
IN ('F' ,'S' ,'G' ,'W' ,'' ,'L' ))
<br>c928_8477 (antr
IN ('A' ,'V' ,'H' ,' ' ))
<br>c928_8482 (blei
IN ('B' ,' ' ))
<br>c928_8484 (moto
IN ('O' ,'D' ,'R' ,'Z' ,'' ))
<br>c928_8493 (abga
IN ('1' ,'2' ,'A' ,'B' ,'C' ,' ' ))
<p>Note, that some fields have the ''-value - that's a NULL!!! But I don't
want have NULLs in my tables! How can I correct this?
<p>R. Heydenreich</html>