且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在内存中编写自定义函数HSQL

更新时间:2022-12-11 17:21:40

HSQLDB指南中记录了用户定义的功能。请参阅本部分以Java编写的功能。



http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_routines



你也可以在SQL中编写您的函数,这在指南的同一章中记录。


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?

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.