读书人

c++ recordset 怎么PutCollect getdat

发布时间: 2013-12-16 23:49:16 作者: rapoo

c++ recordset 如何PutCollect getdate()函数
RecordsetPtr1->PutCollect(_variant_t("systime"), "GETDATE()"); systime 是 datetime类型字段
这么写为啥不行呢。。应该怎么写呢。

[解决办法]
RecordsetPtr1->PutCollect(_variant_t("systime"), "GETDATE()");红色的那个是什么?为什么要使用引号包起来?用引号包起来就会被当成字符串,而不是函数

读书人网 >C++

热点推荐