Quote:
|
Originally Posted by AStefan
You can use cast instead of to_date.
It works on sql server, oracle and db2 too.
|
You don't need to explicitly cast to DATE; it will happen automatically if you supply a properly formatted string, e.g.
Code:
create table test ( mydate date );
insert into test (mydate) values ('2004-08-17');
assuming the client uses ISO date format.