sqlite 数据库不能使用 cordova 在一个 table 中插入两个以上的字段,

sqlite database can not insert more than two fields in one table using cordova,

我尝试在cordova中向sqlite中输入数据,我做了一个数据库和一个有两个字段的table是成功的,当插入三个字段时出现错误,错误是什么?

这是我的脚本,在 1 table 上有 3 个字段。

$(document).ready(function(){

var db;

document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady(){
db = window.sqlitePlugin.openDatabase({name: "samplingapp.db"});
    db.transaction(function(transaction) {
    transaction.executeSql('CREATE TABLE IF NOT EXISTS sampling_m (id integer primary key, kode_pohon text, bag_pohon text, date text)');
    });
}

$("#insert").click(function(){
  var kode_pohon=$("#kode_pohon").val();
  var bag_pohon=$("#bag_pohon").val();
  var date=$("#date").val();
  console.log(kode_pohon +""+ bag_pohon +""+ date); 
  db.transaction(function(transaction) {
        var executeQuery = "INSERT INTO sampling_m (kode_pohon, bag_pohon, date) VALUES (?,?)";             
        transaction.executeSql(executeQuery, [kode_pohon,bag_pohon,date]
            , function(tx, result) {
                 alert('Inserted');
            },
            function(error){
                 alert('Error occurred'); 
            });
    });
});


});
var executeQuery = "INSERT INTO sampling_m (kode_pohon, bag_pohon, date) VALUES (?,?)";

应该是

var executeQuery = "INSERT INTO sampling_m (kode_pohon, bag_pohon, date) VALUES (?,?,?)";

以便保存日期。