怎么编程实现取出ACCESS数据表的主键
更新BLOB数据需要知道主键,怎样编程在ACCESS表中知道哪个字段是主键
[解决办法]
use adox
[解决办法]
_RecordsetPtr m_pRecordset;
m_pRecordset.CreateInstance( "ADODB.Recordset ");
m_pRecordset-> Open( "SELECT * FROM YOURLAB ",_variant_t((IDispatch*)theApp.m_pConnection,true),adOpenStatic,adLockOptimistic,adCmdText);
[解决办法]
When you set a primary key for a table, the primary key is automatically defined as the primary index for the table. For more information, see the topics "Primary Property " and "Unique Property " in DAO Help.