我刚才发现我无法使用function saveSubmit() {
var selectBox = document.getElementById("selectBozone");
var buzoneID = selectBox.options[selectBozone.selectedIndex].value;
var profileName = document.getElementById("profile-title").innerText;
// var tableArray = new Array();
var tableArray = document.getElementById("myTable");
$.ajax({
type: "GET",
dataType: " ",
url: "/lyra/admin/saveProfileBuzoneRights",
data: "buzoneID=" + buzoneID + "&profileName=" + profileName + "&tableArray=" + tableArray,
success: function(response) {
}
});
alert("El proceso se ha realizado correctamente");
//window.location = "profilesRecord";
}
方法通过按位操作更新列:
SQLiteDatabase.update()
调用:ContentValues.put(Contract.ProductColumns.LOCAL_TYPE, Contract.ProductColumns.LOCAL_TYPE + "|" + 8);
getContentResolver().update(URI, ContentValues, null, null);
在SQLiteDatabase.update(tableName, values, selection, selectionArgs)
内,它似乎运行如下:
ContentProvider.update()
而不是:
UPDATE products SET product_local_type = "local_type|8";
我如何实现这样的更新命令? (没有括号)