java - Get all trigger names from oracle -


why take empty result set row ?

 resultset row = dbmd.gettables("%", "dbuser1", "%", types);  while (row.next()) {    system.out.println(result.getstring(1));  } 

you can use code :

  try {    //must upper case    string username="dbuser1".touppercase();     resultset row = dbmd.gettables("%", username , "%", types);      while (row.next()) {       //you need table name trigger name       result.getstring("table_name");     }   //catch errors   } catch (sqlexception e) {       while (e != null) {         system.out.println("\n message: " + e.getmessage());         system.out.println("\n sqlstate: " + e.getsqlstate());         system.out.println("\n errorcode: " + e.geterrorcode());         e = e.getnextexception();       }    } 

Comments

Popular posts from this blog

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

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -