摘要
MFC中,使用CDatabase类与CRecordset类完成ODBC数据库操作。CDatabase负责连接管理和基本SQL语句执行,CRecordset承载查询数据。ADO访问技术中,可使用_ConnectionPtr和_RecordsetPtr两个接口,完成类似操作。
MFC uses the CRecordset class and CDatabase class to complete ODBC database operations.CDatabase is respon-sible for connection management and the implementation of the basic SQL statements.CRecordset load query data.In ADO access technologies,using_ConnectionPtr and_RecordsetPtr two interfaces to complete a similar operation.
出处
《电脑编程技巧与维护》
2010年第8期72-73,共2页
Computer Programming Skills & Maintenance