|
sql.Format("select start_time,end_time from leave_info_tab "
"where personID='%s'and"
"start_time> (convert(datetime,'yyyy-mm-dd' )) "
"and end_time<(convert(datetime,'yyyy-mm-dd' )) ",
strPersonID,strMonthStart,strMonthEnd);
This is a part of the statement, and an error appears when an error occurs when converting from a character to a datetime |
|