View Single Post
Old 12-19-2006, 11:56 AM   #3 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 284
technobard is on a distinguished road
Quote:
Originally Posted by j.gohel View Post
some of the experts recommended using the technique of
{call ... }
Hmmmm... I've used {call....} before. I didn't know the other existed until now, but it makes sense. prepareCall is intended to be used if you want to call the same stored procedure multiple times with different parameters. The question marks (?) are placeholders, the same as when you use a prepareStatement. "Call" is intended for a single execution. There is nothing to stop you from using "Call" multiple times. The advantage of "prepare" anything is that bind variables are used. This eliminates the need to parse the statement at the database level every time you execute it. This is important for scalability for applications supporting a lot of users.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote