操作ACCESS資料庫總結,access資料庫總結

來源:互聯網
上載者:User

操作ACCESS資料庫總結,access資料庫總結

CDaoRecordset是DAO的,CRecordset是ODBC的,

VC++6.0都提供了一些編程介面。主要以下五種:
1.ODBC API;
2.MFC ODBC類;
3.MFC DAO類;(Data Access Objects)
4.MFC的OLE/DB;

5.ActiveX資料對象(ADO)。

rs.GetFieldValue(0co1); 和rs.GetFieldValue((short)0,co1);不同的;

因為以下函數是重載函數:

void GetFieldValue(LPCTSTR lpszName, CString& strValue);
void GetFieldValue(short nIndex, CString& strValue);

三.access中like模糊查詢 的條件是 a like ‘23*’;而在程式中寫要細微 a like '23%',即標準SQL文法。



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.