1
如何在netbeanse中执行procedure
?如何用netbeans执行程序?
我写了下面的查询,但它有错误。
statement.execute("call customer_fnaem('lisa','test')");
如何在netbeanse中执行procedure
?如何用netbeans执行程序?
我写了下面的查询,但它有错误。
statement.execute("call customer_fnaem('lisa','test')");
我假设你的意思是'Netbeans'表示你想从Java调用一个存储过程。使用JDBC它可能类似于以下内容:
CallableStatement statement = connection.prepareCall("{ call customer_fnaem(?, ?) }");
proc.setString(1, "lisa");
proc.setString(2, "test");
cs.execute();
什么是错误? – Femaref 2011-03-18 23:07:26