Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVAÁ¬½Ósql server 2005 Êý¾Ý¿âÐĵÃ

Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2
½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\Program Files£©¡£
ÉèÖÃ Classpath
JDBC Çý¶¯³ÌÐò²¢Î´°üº¬ÔÚ Java SDK ÖС£Òò´Ë£¬Èç¹ûҪʹÓøÃÇý¶¯³ÌÐò£¬±ØÐ뽫 classpath ÉèÖÃΪ°üº¬ sqljdbc.jar Îļþ¡£Èç¹û classpath ȱÉÙ sqljdbc.jar ÏӦÓóÌÐò½«Òý·¢“ÕÒ²»µ½Àà”µÄ³£¼ûÒì³£¡£
sqljdbc.jar ÎļþµÄ°²×°Î»ÖÃÈçÏ£º
<°²×°Ä¿Â¼>\sqljdbc_<°æ±¾>\<ÓïÑÔ>\sqljdbc.jar
ÏÂÃæÊÇÓÃÓÚ Windows Ó¦ÓóÌÐòµÄ CLASSPATH Óï¾äʵÀý£º
CLASSPATH =.;%ProgramFiles%\sqljdbc_1.2\chs\sqljdbc.jar
ÉèÖÃSQL Server·þÎñÆ÷
ÎÒʹÓõÄÊÇSQL Server 2005±ê×¼°æSP2£¬ÕâЩ¶¼Ä¬Èϼ´¿É£¬Ò»°ã²»ÓÃÅäÖá£Èç¹ûÐèÒªÅäÖö˿ÚÇë¿´ÏÂÃæ¡£
1¡¢“¿ªÊ¼”→“³ÌÐò”→“Microsoft SQL Server 2005”→“ÅäÖù¤¾ß”→“SQL Server ÅäÖùÜÀíÆ÷”→“SQL Server 2005 ÍøÂçÅäÖÔ→“MSSQLSERVER µÄЭÒé”
2¡¢Èç¹û“TCP/IP”ûÓÐÆôÓã¬ÓÒ¼üµ¥»÷Ñ¡Ôñ“Æô¶¯”¡£
3¡¢Ë«»÷“TCP/IP”½øÈëÊôÐÔÉèÖã¬ÔÚ“IP µØÖ·”À¿ÉÒÔÅäÖÓIPAll”ÖеēTCP ¶Ë¿Ú”£¬Ä¬ÈÏΪ1433¡£
4¡¢ÖØÐÂÆô¶¯SQL Server»òÕßÖØÆô¼ÆËã»ú¡£
½¨ÒéÖØÆôµçÄÔ¡£
ÔÚEclipseÖвâÊÔ
1¡¢´ò¿ªEclipse£¬“Îļþ”→“н¨”→“ÏîÄ¿”→“Java ÏîÄ¿”£¬ÏîÄ¿ÃûΪTest
2¡¢ÔÚEclipseÖУ¬Ñ¡Ôñ“´°¿Ú”→“Ê×Ñ¡Ïî...”→“Java”→“ÒÑ°²×°µÄ JRE”£¬Ñ¡ÔñÒÑ°²×°µÄ JRE£¬µã»÷“±à¼­”→“Ìí¼ÓÍⲿ”£¬Ñ¡Ôñ%ProgramFiles%\sqljdbc_1.1\chs\sqljdbc.jar
3¡¢ÔÚTestÏîÄ¿µÄ“JRE ϵͳ¿â”ÖпÉÒÔ¿´¼ûsqljdbc.jar£¬Èç¹ûûÓпÉÒÔÓÒ¼üµ¥»÷ÏîÄ¿Test→“¹¹½¨Â·¾¶”→“ÅäÖù¹½¨Â·¾¶...”→“Java ¹¹½¨Â·¾¶”→“¿â”→“Ìí¼ÓÍⲿ JAR...”£¬Ñ¡Ôñ%ProgramFiles%\sqljdbc_1.1\chs\sqljdbc.jar
4¡¢±àдJava´úÂ룬ÈçÏ£º
import java.sql.*;
public class


Ïà¹ØÎĵµ£º

JavaÉè¼Æģʽ֮:IteratorÁ´±íģʽ

ÏÈÀ´Á˽âÒ»ÏÂÁ´±íģʽµÄÔ­Àí£º
Ê×ÏÈдһ¸öJavaBean£¬ÄÚÈÝÊÇÒªÌí¼ÓµÄÔªËغ͸ÃÔªËصĽڵ㡣
public class NodeBean implements Serializable
{
   
    private Object data; //ÔªËر¾Éí
    private NodeBean next; //ÏÂÒ»¸ö½Úµã
   
  &n ......

ÓÃÉè¼ÆģʽµÄ˼ÏëÀ´¶¨ÖÆJavaÖеÄʼþ

¼¶±ð£º ³õ¼¶
ÌÆ
ÏÌ·å
(hutun@263.net
),
2001 Äê 5 ÔÂ 28 ÈÕ
Ëæ×ÅJAVAµÄѸÃÍ·¢Õ¹£¬JDK°æ±¾µÄ²»¶Ï¸ü
У¬JAVAеÄʼþÄ£ÐÍÓë¾ÉµÄJDKÄ£ÐÍÒ²ÓÐÁ˱¾ÖʵÄÇø±ð£¬ËüµÄʼþÄ£ÐÍÒ²ÓÐÁ˺ܴóµÄÇø±ð¡£ÓÉÓÚÏÖÔڵıà³Ì¶¼ÊDzÉÓÃʼþÇý¶¯£¬ËùÒÔºÜÓбØÒªÁ˽âµÄʼþÄ£
ÐÍ£¬ÎÒÃÇÏÂÃæ´Ó¶¨ÖÆʼþµÄʵ¼Ê³ö·¢À´¾ßÌåÌÖÂÛ¡£
ÎÊÌâµÄÌá³ö
......

JavaÖжÔHashMapµÄÉî¶È·ÖÎö

ÔÚJavaµÄÊÀ½çÀÎÞÂÛÀ໹ÊǸ÷ÖÖÊý¾Ý£¬Æä½á¹¹µÄ´¦ÀíÊÇÕû¸ö³ÌÐòµÄÂß¼­ÒÔ¼°ÐÔÄܵĹؼü¡£ÓÉÓÚ±¾È˽Ӵ¥ÁËÒ»¸öÓйØÐÔÄÜÓëÂß¼­Í¬Ê±²¢´æµÄÎÊÌ⣬ÓÚÊǾͿªÊ¼Ñо¿Õâ·½ÃæµÄÎÊÌâ¡£ÕÒ±éÁË´ó´óССµÄÂÛ̳£¬Ò²°Ñ¡¶Java ÐéÄâ»ú¹æ·¶¡·£¬¡¶apress,.java.collections.(2001),.bm.ocr.6.0.shareconnector¡·£¬ºÍ¡¶Thinking in Java¡··­ÁËÒ²ÕÒ²»µ ......

javaÄÚ´æ»ØÊÕ»úÖÆ

ÒýÑÔ
JavaµÄ¶ÑÊÇÒ»¸öÔËÐÐʱÊý¾ÝÇø,ÀàµÄʵÀý(¶ÔÏó)´ÓÖзÖÅä¿Õ¼ä¡£JavaÐéÄâ»ú(JVM)µÄ¶ÑÖд¢´æ×ÅÕýÔÚÔËÐеÄÓ¦ÓóÌÐòËù½¨Á¢µÄËùÓжÔÏó£¬ÕâЩ¶ÔÏóͨ¹ýnew¡¢newarray¡¢anewarrayºÍmultianewarrayµÈÖ¸ÁÁ¢£¬µ«ÊÇËüÃDz»ÐèÒª³ÌÐò´úÂëÀ´ÏÔʽµØÊÍ·Å¡£Ò»°ãÀ´Ëµ£¬¶ÑµÄÊÇÓÉÀ¬»ø»ØÊÕ À´¸ºÔðµÄ£¬¾¡¹ÜJVM¹æ·¶²¢²»ÒªÇóÌØÊâµÄÀ¬»ø»ØÊÕ¼¼Êõ£ ......

³£ÓÃJavaÃüÁî

¶þ¡¢³£ÓÃJavaÃüÁî
1.¡çjavac <opitions><source files>
±àÒëÔ´´úÂë
2.¡çjava <options> class [args]
Ö´ÐÐÀàÎļþ£¨Byte code Îļþ£©
3.¡çjavadoc [options] [packagenames] [sourcefiles] [@files]
Éú³ÉJavadocÎĵµ
5.¡çjar {ctxu} {jar -flie} [manifest -flie] [-c directory] fiels…
½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ