For legacy to old applications,
i need to assign value 'T' or NULL on string column is_twin that is defined
style type checkbox.
data value for ON = 'T' work fine
but i don't know how to assign null to
data value for OFF = NULL !!! (dw take 0 the value)
My question is:
can I assign to OFF null value and if Yes, in what mode ??
TIA
bob
I believe you can use "null!" for the off value.
That's right the word "null" followed by an exclamation point...an
enumerated value.
Richard
"Roberto Lammoglia" <NOSPA...@becromal.it> wrote in message
news:45757809$1@forums-1-dub...
null! does'nt work.
:-(Bob
"Richard Coleman" <Richard Coleman at DRE DOT CA DOT GOV> wrote in message
news:4575a2dc$1@forums-1-dub...
Checkboxes represent binary states. Pick a value that means "YES" and a
value that means "NO", and don't allow any other values, especially NULL.
Then run an UPDATE statement on your database and set all the NULL values to
the "NO" value. Also - set a DEFAULT value on the column to one of the two,
so that NULLs don't get inserted anymore.
Even for 3-state checkboxes, the third state means "one or the other", so
pick a value that means that. Don't use NULL here either.
Sounds like a pain, but working with NULLs is even more of a pain.
Paul Horan[TeamSybase]
"Roberto Lammoglia" <NOSPA...@becromal.it> wrote in message
news:45757809$1@forums-1-dub...
Philisophically speaking i know that NULL value means unknown-undefined !
however many thanks to all.
bob
"Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
news:4576d8c9$1@forums-1-dub...