On 04/07/2011 02:01 PM, Alex Feng wrote:
Does H2 allow you to create user defined functions within the
database?

I want to do something like this:

insert into table1 values ('key1',to_date('MM/DD/YYYY','10/10/2011');

instead of changing all my code to replace the "to_date" function, I
want to write something in H2
that does the same thing as the Oracle to_date.

Yes, see http://www.h2database.com/html/features.html#user_defined_functions

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to