🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

java������ԱӦ�����յ���ݿ�֪ʶ

#11832
From: JSP+ASP
Date: Fri, 27 Aug 2004 16:31
29 lines
3038 bytes
 ��ݱ��˵ij��򿪷���ʵ���飬����Լ�����ݿ����⣬���ܽ���һ����Ϊһ��j
ava������Ա������ݿ��֪ʶӦ�����յ�ʲô�̶ȡ���Ȼÿ���˵����������ͬ����
Щ��������ҵ�һ��֮�ԡ�
1���˽���ݿ�Ļ�֪ʶ��
������ʽ��sql���,���紴�����?�����ѯ��ɾ�����SQL��䡢����ȡ�
2�����jdbc��url���ӵ�����
    ����oracle��jdbc url���Ӵ�Ϊ��jdbc:oracle:thin:@ip:1521:sid��
3����������sql��䡣
    ���緭ҳ��ʱ��Ƚϵ�sql��������õ���ࡣ����һ���������������д��sql��
�䡣
4������ʹ��jdbc�֪࣬����ʱʹ�����еĺ���
PreparedStatement
executeBatch
5�����ձ�Ҫ����ݿ��Ż�֪ʶ��
   ����Ա�����������Ͳ���ˡ�
��1��sql�����Ҫ�󶨱�����
��2��������Ҫ�������ʱ����ʲô�ֶν�������
��3����sql�����Ż��������sql����ִ�мƻ���
ps��   ���˶���ݿ������Ż��Ƚϸ���Ȥ������Ŀ��ʹ�õ���ݿ���Ҫ��mysql��orac
le���о���������ݿ���Ż��кܴ�IJ�ͬ��

--
90%������Ҫ���Լ����������
              ����������ˣ���ô���������Խ���������ˮƽԽ�ߣ���
              �����û����������ô���������Խ��������Խ��Խ�ӽ����
          ��֪����˵�Ķ����ϻ�!!
     �����ش������������ű��˵�����ʾ�����ɵ���ʧ��
      ���˸������κ�����.
�� ��Դ:�����Ļ����� bbs.cqupt.edu.cn��[FROM: LoveLonely.com] 
Technical Details
Message-ID: <4E0dFD$A8Q@bbs.cqupt.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!news2.happynet.org!news.uestc.edu.cn!CQUPT

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,ab9f75db62cecc2a,start
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!news2.happynet.org!news.uestc.edu.cn!CQUPT
From: jaket.bbs@bbs.cqupt.edu.cn (JSP+ASP)
Newsgroups: cn.bbs.comp.lang.java
Subject: java������ԱӦ�����յ���ݿ�֪ʶ
Date: 27 Aug 2004 16:31:36 GMT
Organization: ��������
Message-ID: <4E0dFD$A8Q@bbs.cqupt.edu.cn>
X-Filename: Java/M.1093624285.A
Lines: 29