我在PostgreSQL中测试一个非常简单的存储过程。代码如下:
CREATE TRIGGER kpi_calc_test
AFTER INSERT
ON sensorlastdatalog
FOR EACH ROW
EXECUTE PROCEDURE test2();
触发器是:
kpihistdatalog
但是,当我检查sensorlastdatalog
表时,没有新的插入。我检查了$("#start").click(function() {
var x = $("#rows").val(),
y = $("#columns").val(),
charx = $("#char").val();
//getting teh no of columns, rows and the character
$("#container").html("");
//empty the container first
var table = document.createElement("table");
for (var i = 0; i < x; i++) {
var tr = document.createElement("tr");
for (var j = 0; j < y; j++) {
var td = document.createElement("td");
td.innerHTML = charx;
tr.appendChild(td);
}
table.appendChild(tr);
}
//creating the table based on the values
$("#container").append(table);
//appending inside the container
});
并且已经更新了。我想我做错了什么,你能帮帮我吗?
提前致谢