有点抽象的函数,不知道什么意思,所以需要高手来解答
public DateTime QuerySQLTime(String sql, bool outline){
OracleCommand pCommand = new OracleCommand(sql, ADODC);
OracleDateTime time = new OracleDateTime();
DateTime time2 = new DateTime();
try
{
time =(OracleDateTime) pCommand.ExecuteOracleScalar();
time2 = (DateTime)time;
return time2;
}
catch
{
return time2;
}
}