问题场景:数据库表中时间格式为timeStamp,前台页面使用时间控件传到后台时间为字符串。后台sql语句如下: select * from table_name where to_char(column_name,’YYYY-MM-DD’) = ‘前台日期串’