Discuss / Java / 练习

练习

Topic source

渡厄男神

#1 Created at ... [Delete] [Delete and Lock User]

    static String buildSelectSql(String table, String[] fields) {

        StringJoiner sj = new StringJoiner(", ","SELECT "," FROM "+table);

        for(String s : fields){

             sj.add(s);

          }

return sj.toString();

}


  • 1

Reply