• 2021-04-14
    下列代码中rs为查询得到的结果集,代码运行后表格的每一行有几个单元格()
    while(rs.next()){
    out.print('');
    out.print(''+rs.getString(1)+'');
    out.print(''+rs.getString(2)+'');
    out.print(''+rs.getString(3)+'');
    out.print(''+rs.getString('publish')+'');
    out.print(''+rs.getFloat('price')+'');
    out.print('');
    }