test.java

来自「JSP开发的完整的网络商店.包含源代码和开发文档等」· Java 代码 · 共 48 行

JAVA
48
字号
/*
 * Created on 2005-11-9
 * Author 曹汕
 * Version 1.0
 * Copyright by CS.SSPKU Inc. All rights reserved. 
 */
package com.struts.utils;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;

import com.struts.*;
import com.struts.controller.impl.*;/**
 * @author remote
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Test {
	public static void main(String args[]) throws SQLException{
		DBConnectionManager dn=DBConnectionManager.getInstance();
//		DBConnection db=new DBConnection();
		Connection conn=dn.getConnection();
		Statement stmt=conn.createStatement();
//
//		if(db.executeUpdate("update dish set name='hello'")){
//			System.out.println("ss");
//			}
//		ControllerImpl cc=new ControllerImpl();
//		ResultSet rs=cc.selectRecord("select * from orderline");
//		double a[]=new double[1000];
//		int i=0;
//		while(rs.next()){
//				
//				a[i]=rs.getDouble(6);
//				i++;
//							
//			}
//		for(int j=0;j<8;j++){
//			System.out.println(a[j]);
//			}
//		
	}
		
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?