如何在不使用Java的情况下在H2数据库中编写函数 [英] How to write a function in the H2 database without using Java
问题描述
此问题是对问题如何使用以下方法创建存储过程"的引用H2数据库?" (相同问题的继续).
This question is reference to question "How to create stored procedure using H2 database?" (continuation of the same question).
有没有一种方法可以在不使用Java代码的情况下在H2中编写函数?我的要求是在不使用Java代码的情况下将用SQL编写的函数转换为H2.我在不同的门户网站中找到了许多使用Java代码执行相同操作的示例.您的帮助将不胜感激.
Is there a way to write a function in H2 without using Java code? My requirement is to translate the functions written in SQL to H2 without using Java code. I found lot of examples in different portals doing the same using Java code. Your help will be greatly appreciated.
问候 阿伦
推荐答案
当前,H2仅支持以Java或相关语言(例如Groovy或Scala)编写的函数. PL/SQL(Oracle)和
Currently, H2 does only support functions written in Java or a related language (for example Groovy or Scala). PL/SQL (Oracle) and T-SQL (MS SQL Server, Sybase) are not supported.
这篇关于如何在不使用Java的情况下在H2数据库中编写函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!