🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [jdbc]���ܶ�̬�趨������?

#19420
From: kelvin��������
Date: Tue, 06 Jan 2004 08:50
25 lines
2181 bytes
���һ���ǵ���stored procedureʱ�������õ�
һ�㶯̬�ø�string����������
�� �� reoal (������) �Ĵ������ᵽ: ��
:       pstmt = con.prepareStatement("select * from ?",
:                                    ResultSet.TYPE_SCROLL_INSENSITIVE,
:                                    ResultSet.CONCUR_READ_ONLY);
:       pstmt.setString(1,"user");
: �õ�sybase��ݿ�,��������Ĵ���:
: com.sybase.jdbc2.jdbc.SybSQLException: ASA Error -141: Table '@p0' not found
:     at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2636)
:     at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1996)
:     at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
: >>  .................<����ʡ��>............


--
    ����ż�ļ��� hoho
 ��������������������������������
|    ����   ����   ��������      |
|   |  0 | |  1 | |  enter |     |
|    ����   ����   ��������      |
 ��������������������������������

�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: 10.214.32.18]
Technical Details
Message-ID: <4A9aE9$AqJ@freecity.cnzju.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,8f94d7f2f1a8708f
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-06 00:47:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: wardchu.bbs@freecity.cnzju.net (kelvin��������)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [jdbc]���ܶ�̬�趨������?
Date: 06 Jan 2004 08:50:29 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <4A9aE9$AqJ@freecity.cnzju.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1073378985.A