ado 删除 acess 表中 所有记录

	CString strSQL;
	//strSQL.Format("delete * from 11选5");  //ok1
	strSQL.Format("delete  from 11选5");     //ok2
	m_adoRecordSet->Open((LPCTSTR)strSQL);

至于用ado中的delete方法没有试出来

	m_adoRecordSet->Delete(adAffectAll);
	m_adoRecordSet->Update();

以上不好使。如果哪位朋友知道原因,希望能告知。

你可能感兴趣的:(编程,windows,VS2010,Visual,Studio,2010)