如何使用SQLitePCL更新UWP

时间:2017-05-01 13:08:26

标签: c# sqlite uwp

我想更新数据库中的所有行,但都要重写。这是代码:

var q = 1;
$(document).ready(function() {

  $(".questions").hide();
  $("#question1").show();

  $("#next").click(function() {

    $("#question" + q).hide();
     q++;
    if(q > 30) {
      $("#next").remove();
      $("body").append("<input type='submit' value='Submit'>");
    } else {
      $("#question" + q).show();
    }
  });

  // Set up the form's submit event handler. If you want to access the
  // event within that function, you need to set up the function to 
  // bind the event to an event argument (e in this case).
  $(form).on("submit", function(e){

     var selectedOption = $('input[name=options]:checked');

     // Do your validation
     if ((selectedOption.val() == '')){
       e.preventDefault();   // Cancel the current event
       e.stopPropagation();  // Stop the current event from propagating
     }

  });
});

如何在SQLitePCL中进行更新?谢谢!

1 个答案:

答案 0 :(得分:0)

没关系,只需删除它并在表格中插入新行并获利。