本文介紹了如何為內存 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 編寫自定義函數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!