OracleDataReader MyReaderYear = MyDataBase.getread("select to_char(max(plan_date_x),'yyyy') from plan_furnace");
MyReaderYear.Read();
if (MyReaderYear.GetValue(0)!= System.DBNull.Value)
{
max_year = MyReaderYear[0].ToString();
}
OracleDataReader MyReaderYear = MyDataBase.getread("select to_char(max(plan_date_x),'yyyy') from plan_furnace");
MyReaderYear.Read();
if (MyReaderYear.GetValue(0)!= System.DBNull.Value)
{
max_year = MyReaderYear[0].ToString();
}
转载于:https://www.cnblogs.com/zxd-cindy/archive/2008/07/15/1243192.html