如何使用vc ++读取时间戳值并将其存储到acharr数组中? [英] How do I read and store a timestamp value into acharr array using vc++?

查看:237
本文介绍了如何使用vc ++读取时间戳值并将其存储到acharr数组中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Oracle数据库中读取时间戳值并将其值存储在char数组中...我正在使用VC ++平台来实现这一点。所有建议都表示赞赏。



我需要解决方案作为查询。



谢谢...

解决方案

我需要解决方案作为查询。

因为我们不知道你的数据库的结构,桌子,或者你感兴趣的领域,那么它是不可能提供的。但是,有一些标准库函数可以将时间戳转换为字符串,具体取决于时间戳的格式和值。请参阅 https://msdn.microsoft.com/en-us/library/w4ddyt9h.aspx [ ^ ]了解详情。

I need to read a timestamp value from an Oracle database and store its value in a char array... I am using VC++ platform to achieve this. All suggestions are appreciated.

I need solution as a query.

Thanks...

解决方案

I need solution as a query.
Since we have no idea of the structure of your database, its tables, or indeed the field you are interested in then it is impossible to provide it. However, there are standard library functions that will convert a timestamp into a character string, depending on the format and value of the timestamp. See https://msdn.microsoft.com/en-us/library/w4ddyt9h.aspx[^] for details.


这篇关于如何使用vc ++读取时间戳值并将其存储到acharr数组中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆