public static String formatSqlValues(String... values){
  StringBuilder builder=new StringBuilder("(");
  for (int i=0; i < values.length; i++) {
    if (i > 0) {
      builder.append(',');
    }
    builder.append('\'');
    builder.append(escapeSqlString(values[i]));
    builder.append('\'');
  }
  builder.append(")");
  return builder.toString();
}

public static String formatSqlValues ( String ... values ) { StringBuilder builder = new StringBuilder ( "(" ) ; for ( int i = 0 ; i < values . length ; i ++ ) { if ( i > 0 ) { builder . append ( ',' ) ; } builder . append ( '\'' ) ; builder . append ( escapeSqlString ( values [ i ] ) ) ; builder . append ( '\'' ) ; } builder . append ( ")" ) ; return builder . toString ( ) ; }
formats an array of values as a sql values like ( ' value1 ' , ' value2 ' , . . . , ' value_n ' ) . escapes single quotes with two single quotes .
