Storage procedure call

xiaoxiao2021-03-06  65

Public ResultSet Mcallsql (String Strsql) {RESULTSET RS = NULL; Try {CallAbleStatement Call = Conn.PrepareCall (strsql); r = call.executeQuery ();} catch (Exception E) {

} Return RS;

Conn returns the corresponding RESULTSET for Connection.

Dbconnection aa = new dbconnection (); resultset rr = aa.mcallsql ("exec ss"); try {while (r.next ()) {system.out.println (r.getstring ("class"));}} Catch (Exception E) {}

Complete the corresponding call

转载请注明原文地址:https://www.9cbs.com/read-112196.html

New Post(0)