Article View: cn.bbs.comp.lang.java
Article #20938Re: [java��]jdbc����
From: pupop
Date: Fri, 12 Dec 2003 15:21
Date: Fri, 12 Dec 2003 15:21
21 lines
1498 bytes
1498 bytes
��ȷ������سɹ��� �� �� apollow (apollo) �Ĵ������ᵽ: �� : Class.forName(jdbcDriver).newInstance(); //load driver : Connection dbConn = DriverManager.getConnection(dbURL); //connect : String sql = "insert into infor(ID,PASS) values(?,?)"; : PreparedStatement prepare=dbConn.prepareCall(sql); : prepare.clearParameters(); : prepare.setInt(1,200004); : prepare.setString(2,"456"); : int result =prepare.executeUpdate(); : ʡȥ��catch() : >> .................<����ʡ��>............ -- ����Ʒ���� �绰 [m[1;33m�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: pupop][m
Technical Details
Message-ID:
<49cKkj$9WO@Freecity.dhs.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.tiscali.ch!feed.news.tiscali.de!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer2.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,31cf01cc6187e9c5 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-12 07:23:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.tiscali.ch!feed.news.tiscali.de!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer2.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: pupop.bbs@Freecity.dhs.org (pupop) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [java��]jdbc���� Date: 12 Dec 2003 15:21:02 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <49cKkj$9WO@Freecity.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1071242445.A Lines: 21