Return values as Out Parameters or as ResultSet return value?

If you'd like a stored procedure to return a value, what's the difference between returning it as an out parameter (SELECT returnValue INTO outParameter ...) or as the ResultSet of the stored procedure (SELECT returnValue ...)

In either case, the value you need is returned correctly. Are there any implications with regards to style, performance, or other characteristics that I should keep in mind when deciding which strategy to adopt?

Thanks.

[467 byte] By [lightbulb4321a] at [2007-11-27 6:32:46]
# 1
To clarify, I mean when you want to return a single number, as in a return value, or other scalar value. I ask because this can be returned either as a ResultSet or an OUT parameter, whereas an actual set of rows/columns can only be represented and returned as a ResultSet.
lightbulb4321a at 2007-7-12 17:58:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
For performance you would have to measure it - it will vary by driver/database.Other than that I have no preference. I use result sets but only because it is more familar to me.And I wouldn't expect this to be something that you would call often so performance wouldn't
jschella at 2007-7-12 17:58:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...