public void inithavesold(){//建立查询已销售商品表格、模型
try {
Vector columnName = new Vector();//字段名
Vector> dataVector = new
Vector>(); //存储所有数据,里面每个小的Vector是存单行的
columnName.add("编号");
columnName.add("商品名");
columnName.add("数量");
columnName.add("价格");
columnName.add("总盈利");
conn = DataBase.getconnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("select * from havesold");
while(rs.next()){
Vector