Discuss / Java / 打卡

打卡

Topic source

車宁Chris

#1 Created at ... [Delete] [Delete and Lock User]
    static String buildSelectSql(String table, String[] fields) {
        // TODO:
        var sj = new StringJoiner(", ","SELECT "," FROM "+table);
        for(String field : fields){
            sj.add(field);
        }
        return sj.toString();
    }


  • 1

Reply