问题:
select * from table_name where
DATATIMESTAMP>$updatetime
其中uodatetime是yyyy-mm-dd hh-mi-ss格式的参数
SQL简单查询时发生缺失右括号错误
但是检查并没有缺少括号,运行多次仍报错
解决方案:
改变updatetime参数的格式为yyyy/mm/dd hh-mi-ss,然后再to_date转换为想要的格式。
select * from table_name where
DATATIMESTAMP>to_date($updatetime,'yyyy-MM-dd hh-mi-ss')
具体什么原因导致的还没发现,不过可以解决问题