"insert into a(日期,时间) values( " + + "to_date('" + Format(DTPToD.Value, "yyyy-MM-dd") + "'),to_date('" + Format(DTPFrom.Value, "h:mm:ss") + "')"to_date('" + Format(DTPFrom.Value, "h:mm:ss") 提示没有正确的月份,插入的是时间,怎么跟月份有关阿,是不是to_date的问题
调试欢乐多
insert into a(日期,时间) values( to_date('" & DTPToD.Value & "','yyyy-mm-dd'),to_date('" & DTPFrom.Value & ",'hh24:mi:ss')"
insert into a(日期,时间) values( to_date('" & DTPToD.Value & "','yyyy-mm-dd'),to_date('" & DTPFrom.Value & "','hh24:mi:ss')"