如何在netbeanse中执行procedure?
我写了下面的查询,但它有错误。
statement.execute("call customer_fnaem('lisa','test')");发布于 2011-03-19 07:12:00
我假设您所说的“Netbeans”意味着您想要从Java调用一个存储过程。使用JDBC,它将如下所示:
CallableStatement statement = connection.prepareCall("{ call customer_fnaem(?, ?) }");
proc.setString(1, "lisa");
proc.setString(2, "test");
cs.execute();https://stackoverflow.com/questions/5358683
复制相似问题