Article View: cn.bbs.comp.lang.java
Article #20975Re: [java��]jdbc����
From: apollo
Date: Sat, 13 Dec 2003 03:05
Date: Sat, 13 Dec 2003 03:05
24 lines
1587 bytes
1587 bytes
�Ҵ�csdn���ҵ��ģ�����developers.sun.com�ϵĶ��� http://java.sun.com/developer/codesamples/index.html �� �� snoppy (û���dz�) �Ĵ������ᵽ: �� : ����ЩSample Code�������µİ��� : �� �� 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"); : >> .................<����ʡ��>............ -- ./configure make make install [m[1;34m�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: apollow][m
Technical Details
Message-ID:
<49cdDT$9eI@Freecity.dhs.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,31cf01cc6187e9c5 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-12 19:07:51 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: apollow.bbs@Freecity.dhs.org (apollo) Newsgroups: cn.bbs.comp.lang.java Subject: Re: [java��]jdbc���� Date: 13 Dec 2003 03:05:01 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <49cdDT$9eI@Freecity.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1071284621.A Lines: 24