0
我使用的是sqliteodbc,由于某些原因,它无法获得小时,分钟和秒钟。sqlite odbc获取小时分钟。秒
SQLBindCol(hTimeStampNotes, 5, SQL_C_TIMESTAMP, &(noteTimeStamp.submitTime), 16, &junkLong);
noteTimeStamp.submitTime是时间戳数据类型:
typedef struct tagTimeStampType {//TIMESTAMP_STRUCT
short year;
short month;
short day;
short hour;
short minute;
short second;
unsigned int fraction;
} TimeStampType;//TIMESTAMP_STRUCT;
我的小时,分钟,秒和分数总是站出来为0。这对我的作品我用这个绑定列使用访问数据库。有其他人有这个问题吗?我可以宣誓一周前这对我有用。