string sql = string.Format("select * from {0} where HC_TIME between to_date({1},'yyyy-mm-dd hh24:mi:ss') and to_date({2},'yyyy-mm-dd hh24:mi:ss')", HCTable.realTimetable, Lowtime, Toptime);
注:HC_TIME是列名称
------解决思路----------------------
string sql = string.Format("select * from {0} where HC_TIME between to_date('{1}','yyyy-mm-dd hh24:mi:ss') and to_date('{2}','yyyy-mm-dd hh24:mi:ss')", HCTable.realTimetable, Lowtime, Toptime);
这样试试