zhanghaijian
2018-07-03 06580708bdc661873cbc2dfd6de8b3155f57b8ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package ay.zk;
 
import java.sql.Connection;
 
import ay.db.ConnTools;
import ay.db.DbUtil_mysql;
 
public class Zk_ayjxjy_mysql {
 
        public static void main(String args[]) {
            try{
            Connection conn_ppas = ConnTools.make_ppas_ayjxjy_conn();
            Connection conn_mysql = ConnTools.make_mysql_conn();
            DbUtil_mysql d = new DbUtil_mysql();
            
            
            d.insert(conn_ppas, conn_mysql, "test", 
                    " select t1,t2 from test  ",
                    " insert into test(t1,t2) ",
                    "delete from test");
            
            
            
            
            conn_ppas.close();
            conn_mysql.close();
            
            }catch(Exception ex){
                ex.printStackTrace();
            }
            
        }
        
}