I want to write a simple function in HSQL so that it is backwards compatible with DB2 functions. In theory I should be able to write a custom function in java and hook it into HSQL. Is there any direction/documentation on just that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
User defined functions are documented in the HSQLDB Guide. See this section for functions written in Java.
http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_routines
You can also write your functions in SQL, which is documented in the same chapter of the Guide.