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