How to write custom functions for in memory HSQL(如何为内存 HSQL 编写自定义函数)
问题描述
我想在 HSQL 中编写一个简单的函数,以便向后兼容 DB2 函数.从理论上讲,我应该能够在 java 中编写一个自定义函数并将其挂接到 HSQL 中.有没有这方面的指导/文档?
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?
推荐答案
HSQLDB 指南中记录了用户定义的函数.有关用 Java 编写的函数,请参阅本节.
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
您还可以用 SQL 编写函数,这在指南的同一章中有记录.
You can also write your functions in SQL, which is documented in the same chapter of the Guide.
这篇关于如何为内存 HSQL 编写自定义函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何为内存 HSQL 编写自定义函数
基础教程推荐
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
