resultset - Method to get only procedures from an oracle database using Java -


i need procedures using java databasemetadata method returns functions' names.

databasemetadata dbmd=con.getmetadata(); resultset result = dbmd.getprocedures(null, ousername, null);  

that happens because procedures , functions same in oracle.

there column procedure_type of type short show kind of procedure:

  • 1 means there no result, procedure.
  • 2 means returns result, function.

you can access column usual resultset:

result.getshort("procedure_type") 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -