Null value of some fields be selected, how to output to variables?

From: Zhang Yu <zhangyu_at_utstar.com>
Date: 4 Feb 2002 17:56:10 -0800
Message-ID: <38c1abc.0202041756.2bd4882_at_posting.google.com>


I encountered a problem: (VC++ 6.0)

Table : AAA

Field : ID | value1 | value2 | value3
         1 |   0    |   0    |   2
         2 |   3    |        |   
         3 |        |   1    |   2

If I output to the select result AAA.value1(ID=3), AAA.value2(ID=2), AAA.value3(ID=2) to a (int) variable, a exception occurs means"Incompatible data types in stream operation". How can I handle this case? Received on Tue Feb 05 2002 - 02:56:10 CET

Original text of this message