Hi,
I want to write a standard java user defined function, like this
example:-
select db_fun("roll"), roll from student;
**db_fun() will work for all tables of the all databse
here db_fun is the function that i want to write.
The student table is:-
roll name
1 'A'
2 'B'
3 'C'
I used the column name as a parameter of the function. and the
db_fun () will return the name of the table corresponding to the roll.
Now, how can i access the name column from the db_fun()?
This is the same as the query:-
select name, roll from the student.
But i want, the name will return from the user defined
function.
Can i write such type of user defined function in the db2 databse?
I want to write a standard java user defined function, like this
example:-
select db_fun("roll"), roll from student;
**db_fun() will work for all tables of the all databse
here db_fun is the function that i want to write.
The student table is:-
roll name
1 'A'
2 'B'
3 'C'
I used the column name as a parameter of the function. and the
db_fun () will return the name of the table corresponding to the roll.
Now, how can i access the name column from the db_fun()?
This is the same as the query:-
select name, roll from the student.
But i want, the name will return from the user defined
function.
Can i write such type of user defined function in the db2 databse?
Comment