function translateSql(ob) {
    var arr = [];
    for (var key in ob) {
        var value = ob[key];
        if (Object.hasOwnProperty.call(ob, key)) {
            if (typeof value === "string" && value.indexOf(" ") >= 0) {
                value = "'" + value + "'";
            }
            arr.push(key + "=" + value)
        }
    }
    return arr.toString();
}
//Function to translate the string into SQL data//
Function to translate the string into SQL data
Function to translate the string into SQL data
function translateSql(ob) {
    var arr = [];
    for (var key in ob) {
        var value = ob[key];
        if (Object.hasOwnProperty.call(ob, key)) {
            if (typeof value === "string" && value.indexOf(" ") >= 0) {
                value = "'" + value + "'";
            }
            arr.push(key + "=" + value)
        }
    }
    return arr.toString();
}
function translateSql ( ob ) { var arr = [ ] ; for ( var key in ob ) { var value = ob [ key ] ; if ( Object . hasOwnProperty . call ( ob , key ) ) { if ( typeof value === "string" && value . indexOf ( " " ) >= 0 ) { value = "'" + value + "'" ; } arr . push ( key + "=" + value ) } } return arr . toString ( ) ; }
Function to translate the string into SQL data
Function to translate the string into SQL data