 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Sep 27, 2006 3:57 pm Post subject: Stored procedures - syntax |
|
|
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
|
Posted: Wed Sep 27, 2006 4:57 pm Post subject: Re: Stored procedures - syntax |
|
|
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 |
|
 |
|
|
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
|
|