I am using StringBuilder to build a ver long query.
StringBuilder sb = new StringBuilder();
sb.append("select * from x where name = %s'");
String.format(sb.toString, "John");
What would be equivalent to something like this? Or is this actually the right way to do it?