AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stored procedures - syntax

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Sep 27, 2006 3:57 pm    Post subject: Stored procedures - syntax Reply with quote



Hi,

Currently coding a program which connects to Informix 7.3x. Java
version is 1.4.2.
I tend to use stored procedures executing them from Java code and
getting recordsets back.

Should I use

EXECUTE PROCEDURE spl_name (param1,param2)

syntax or

{call spl_name(?,?)}

one with setting parameters ? Shoudl I stick to CallableStatement

Thanks in advance and regards,
Sergei
Back to top
Robert Klemme
Guest





PostPosted: Wed Sep 27, 2006 4:57 pm    Post subject: Re: Stored procedures - syntax Reply with quote



On 27.09.2006 12:57, tursergei (AT) yandex (DOT) ru wrote:
Quote:
Hi,

Currently coding a program which connects to Informix 7.3x. Java
version is 1.4.2.
I tend to use stored procedures executing them from Java code and
getting recordsets back.

Should I use

EXECUTE PROCEDURE spl_name (param1,param2)

syntax or

{call spl_name(?,?)}

one with setting parameters ? Shoudl I stick to CallableStatement

As long as possible I'd stick with standard solutions. So, yes, use
CallableStatement with the JDCB escape syntax wherever possible unless
you do not get the functionality you need or have to pay too high a
price (performance, overly complex code...).

robert
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.