首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

如何编程实现取出ACCESS数据表的主键

2012-01-30 
怎么编程实现取出ACCESS数据表的主键更新BLOB数据需要知道主键,怎样编程在ACCESS表中知道哪个字段是主键[

怎么编程实现取出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.

热点排行