테이블이 있습니다. == create table newstudent (enroll int, name varchar2 (20), DoJoin date); C#에서 은 내가어떻게 oracle10g 데이터베이스에 DateTime C# 언어를 저장할 수 있습니까?
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
그런데 우리는했습니다 "oraclecommand"가 무엇인지 전혀 알지 못합니다. 'amit purohit'이 유효한 문자열 (잘못된 따옴표)이 아니므로, 게시 한 내용은 C#으로 유효하지 않습니다. 실제 코드 *를 게시하십시오. 문제를 시연하는 짧지 만 완전한 프로그램 (예 : 콘솔 앱)을 게시하는 것이 가장 이상적입니다. –