小弟公司做了一个如上图的模拟sql分析器的应用,但是在执行新建或者修改存储过程的时候总是报各种错误,以下是调用的方法
public String getNoreturnResult(String sql,String db)throws SQLException {
String result = "";
try {
st.execute(db+sql);
} catch (SQLException e) {
e.printStackTrace();
throw e;
}
result = "执行成功";
return result;
}
请教各位大神如何实现新建存储过程或者修改存储过程,是否有类似execute 的其他方法可以实现?