🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #22214

java call stored procedure problem

#22214
From: ����������
Date: Mon, 27 Oct 2003 11:37
20 lines
1217 bytes
I want to use java call DB2 stored procedure, 
The argument I want to pass to it was Null,
but I cant achieve it throught the follow code:

..
String sql = "{CALL " + procName + "(?)" + "}";
callStmt = conn.prepareCall(sql);

callStmt.setObject(1, null);
...

how should i do?


--
What is worth doing is worth doing well.
 
ֻҪ���������ֵ��ȥ������һ��Ҫ�������á�

�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: hymn]
Technical Details
Message-ID: <492I3A$9yT@bbs.zju.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.ccie.net.cn!ZJUBBS

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f6cb0,e35a3e624d062dc0,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-10-27 03:45:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.ccie.net.cn!ZJUBBS
From: hymn.bbs@bbs.zju.edu.cn (����������)
Newsgroups: cn.bbs.comp.lang.java
Subject: java call stored procedure problem
Date: 27 Oct 2003 11:37:01 GMT
Organization: �㽭��ѧ���ɰٴ�
Message-ID: <492I3A$9yT@bbs.zju.edu.cn>
X-Filename: Java/M.1067254426.A
Lines: 20