Discuss / Java / 练习:

练习:

Topic source

ypx0410

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

  • 1

Reply