I understand that you can create a java function in the oracle database using the CREATE JAVA command - see here . I read a lot about how to do this, but the more I read, the more I read.
What I want to do is simple. Since I am already very familiar with Java, I do not want to learn PL / SQL, especially that the project I'm working on is pretty small. I also do not want to do too much with this function, all I want to do is something like the following:
1) Declare a function when connecting to the database, for example:
CREATE JAVA AS
public class Example{
public static bool returnTrue() {
return true;
}
}
2) Then call the function when connected as:
SELECT Example.returnTrue() FROM DUAL;
Is it possible?
How?
source
share