After a problem, the moment to solve the problem, there is always a strong sense of achievement.
In the previous project, the background database used SQL Server, and the time comparison SQL was simple, which is generally the following form:
select * from table where time<'2006-09-12 00:00:00'
New project, the backstage use Oracle, just execute SQL statement in JSP, backstage always reported 500 error, system.out Some variables found, this kind of SQL writing cannot retrieve content. Check the manual, check Baidu, the original in Oracle time comparison of the SQL statement to be used in another way:
select * from oracletable where time<to_date('2006-09-12 00:00:00','yyyy-mm-dd hh24:mi:ss')
That's how it's done.
Suddenly feel, the development road is long, all the time can encounter the problem, any small place should pay attention to.