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

javaÓësql server 2005µÄÏà¹Ø²Ù×÷

//±¾³ÌÐòÁ¬½ÓµÄÊÇsql server 2005£¬ÓëÁ¬½Ósql server 2000Óе㲻ͬ£ºdriverNameºÍURL¶¼²»Í¬
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class create{
   public void getConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
   {
    Statement stmt = null;
    Connection  dbConn;
    ResultSet rs;
        String user="sa";
        String pass="";
        String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
        String URL = "jdbc:sqlserver://localhost:1433;DatabaseName=tempdb";
        try{
         Class.forName(driverName).newInstance();
          System.out.println("ok");
          dbConn = DriverManager.getConnection(URL,user,pass);
           System.out.println("Connection Successful!");
          stmt = dbConn.createStatement(); // »ñµÃÖ´ÐÐSQLÓïÑÔµÄÈÝÆ÷
          rs=dbConn.getMetaData().getTables(null, null, "testTb", null);
          if(rs.next()){
           System.out.println("testTb´æÔÚ!ÔÛÏÖÔÚ°ÑËüɾÁË°É£¡");
           stmt.executeUpdate("drop table testTb");
              System.out.println("»ØÍ·ÔÙ¿´¿´£¬Ã»ÁË°É£¿");
      &nb


Ïà¹ØÎĵµ£º

javaÃæÊÔÌâ1

l    JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìƽ̨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......

javaÃæÊÔÌâ2

 18.×öÒ»¸öµ¥×ÓģʽµÄÀֻ࣬¼ÓÔØÒ»´ÎÊôÐÔÎļþ
package com.softeem.demo;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
*@authorleno
*µ¥×Óģʽ£¬±£Ö¤ÔÚÕû¸öÓ¦ÓÃÆÚ¼äÖ»¼ÓÔØÒ ......

ÓÃJava¿ª·¢´úÀí·þÎñÆ÷

 
´úÀí·þÎñÆ÷µÄÓ¦Ó÷dz£¹ã·º¡£±ÈÈ磬ÔÚÆóÒµÍøÄÚ²¿£¬Ëü¿ÉÒÔÓÃÀ´¿ØÖÆÔ±¹¤ÔÚ¹¤×÷ʱä¯ÀÀµÄInternetÄÚÈÝ£¬×èÖ¹Ô±¹¤·ÃÎÊijЩÀàÐÍ
µÄÄÚÈÝ»òijЩָ¶¨µÄÍøÕ¾¡£´úÀí·þÎñÆ÷ʵ¼ÊÉÏ°çÑÝ×Åä¯ÀÀÆ÷ºÍWeb·þÎñÆ÷Ö®¼äµÄÖмäÈ˵ĽÇÉ«£¬Äܹ»¶Ôä¯ÀÀÆ÷ÇëÇó½øÐи÷ÖÖ¸÷ÑùµÄ´¦Àí£¬Äܹ»¹ýÂ˹ã¸æºÍ
Cookie£¬Äܹ»Ô¤ÏÈÌáÈ¡WebÒ³Ã棬ʹµÃä¯ÀÀÆ÷·ÃÎÊ ......

´ø×Åjavaѧpython

1. pythonÊÇÒ»ÖÖÈõÀàÐ͵Ľű¾ÓïÑÔ£¬ÔÚ¸ø±äÁ¿¸³ÖµÊÇÎÞÐèÖ¸¶¨±äÁ¿µÄÀàÐÍ£¬ÀýÈ磺
x=1                        #£¨ÕûÐÍ£©-------·¶Î§ÔÚ-2^31->2^31
x=2345L     &n ......

SQL SERVERÒìµØ±¸·Ý·½·¨(1)

д³É´æ´¢¹ý³Ì£¬½¨Á¢×÷Òµ¶¨Ê±±¸·Ý~~~
--ÔÚsqlÖÐÓ³ÉäһϾͿÉÒÔÁË
exec master..xp_cmdshell 'net use z: \\yizhi\D$ "ÃÜÂë" /user:yizhi\administrator'
/*--˵Ã÷:
exec master..xp_cmdshell 'net use z: \\xz\c$ "ÃÜÂë" /user:xz\administrator'
z:ÊÇÓ³ÉäÍøÂç·¾¶¶ÔÓ¦±¾»úµÄÅÌ·û,ÓëÏÂÃæµÄ±¸·Ý¶ÔÓ¦
\\xz\c$ÊÇÒªÓ³ÉäµÄÍ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ