首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何将DateTime c#语言保存到oracle10g数据库中

如何将DateTime c#语言保存到oracle10g数据库中
EN

Stack Overflow用户
提问于 2009-08-02 07:09:48
回答 3查看 9.8K关注 0票数 0

当我输入以下命令时,c#中有一个table== create table newstudent(注册int,名称varchar2(20),DoJoin date);

代码语言:javascript
复制
oraclecommand(1,'amit purohit', DateTime.Now());
//Error found 'nvalid month'
oraclecommand(1,'amit purohit', String.Format("{0:dd-MMM-yyyy}"));
//problme that save only date into database but i need time also. like '11-AUG-2009 11:22:32.0'
oraclecommand(1,'amit purohit', String.Format("{0:dd-MMM-yyyy hh:mm:ss}")
//also error get like string picture format in date time values
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1218326

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档