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

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -

javascript - three.js lot of meshes optimization -