CRecordset set;
try
{
set.open(CRecordset::forwardOnly,"你的sql语句");
set.GetFieldValue(......);
}
catch(CDBExceptio *e)
{
.................
}
...............