Here you can find the source of unescapeSQL(String input)
static String unescapeSQL(String input)
//package com.java2s; public class Main { static String unescapeSQL(String input) { // If the string is quoted if (input.startsWith("\"") && input.endsWith("\"")) { input = input.substring(1, input.length() - 1); }/*from ww w. j a v a2s. co m*/ return input.replace("\"\"", "\"").replace("\\\\", "\\"); } }