为什么更新语句不执行?

时间:2017-04-16 14:28:08

标签: postgresql

update movies 
    set title = 'new title',
        show_start = '16-04-2017',
        show_end = '16-04-2017' 
where id = 1;

它没有任何错误。但我等了2分钟,这句话什么也没做。选择,插入和删除语句工作得很好。表只有一行。

1 个答案:

答案 0 :(得分:0)

可能数据类型定义为字符串而不是数字。 尝试使用单引号。 即。,ID =' 1'

var AplOperations = function() {
  // this function i want to call when an enter button is pressed
  this.keyPressEvent = function() {
      // my code goes here
  }
} 

var myOpr = new AplOperations();

document.onkeyup = myOpr.keyPressEvent();