如何得到一个_RecordsetPtr pRst(__uuidof(Recordset))对象pRst里面的查询结果的列数(属性数)和列名(属性名).pRst经过如下语句赋值:
pRst=pConn->Execute((_bstr_t)sql,NULL,adCmdText);
其中sql是一个查询语句,例如
select count(*)
from MobilePhone
where Name='诺基亚';