Get SQL Return Value

I'm trying to figure out the syntax (java) for retrieving the return value from a SQL statement... so in java I'm calling some sql stored procedure that does:

SELECT * FROM Something

Return 1

How do I get the return value from the SQL Stored Procedure?

Thanks in advance for any help!

[317 byte] By [crimminsda] at [2007-11-27 8:18:48]
# 1

Looking at the java docs for CallableStatement I see that it has the following form...

{?= call <procedure-name>[(<arg1>,<arg2>, ...)]}

If you have a compliant driver then that is how you use it.

If you don't have a compliant driver then you will have to experiment.

jschella at 2007-7-12 20:07:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
Thanks! That works perfectly!!!
crimminsda at 2007-7-12 20:07:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...