> Hallo,
>
[quoted text clipped - 9 lines]
>
> Ole
Use java.sql.CallableStatement. It is similar to using a prepared
Statement. Example:
// storec proc. xyz with three params
CallableStatement cstmt = conn.prepareCall("{call xyz(?, ?, ?)}");
// set params, like used in a prepared statement
cstmt.setInt(1, 100);
cstmt.setInt(2, 250);
cstmt.setString(3, "hello");
// execute the procedure
cstmt.execute();
Greetings
Ralf.
Andree Große - 23 Sep 2003 12:39 GMT
>> Hallo,
>>
[quoted text clipped - 9 lines]
> // storec proc. xyz with three params
> CallableStatement cstmt = conn.prepareCall("{call xyz(?, ?, ?)}");
A stored procedure to cerate a stored procedure?
That's very interesting. He want to perform a
PL/SQL Script.
A.G.
> Hallo,
>
[quoted text clipped - 5 lines]
>
> The Procedure is known by the Database, but how can I execute it from Java?
Why do you think that does not work?
A.G.