PLS-00201触发器发生错误

时间:2015-09-02 04:08:15

标签: oracle plsql oracle11g

我为自动增量编写了一个触发器请在下面找到序列和触发器。

$$hashKey

我的问题是,当我执行此触发器时,它给出了如下错误。

CREATE SEQUENCE WEB_FE_IPO_IPO_APPLICATION_SEQ;
CREATE OR REPLACE TRIGGER WEB_FE_IPO_IPO_APPLICATION_TRG
  BEFORE INSERT
    ON WEB_FE_IPO_IPO_APPLICATION
      REFERENCING NEW AS NEW_ROW
      FOR EACH ROW
BEGIN
SELECT WEB_FE_IPO_IPO_APPLICATION_SEQ.NEXTVAL INTO NEW_ROW.APPLICATION_ID FROM dual;
END;
/ 

我找不到问题。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:3)

您需要在angular.module('myApp', []) .controller('MyCtrl', function($scope) { $scope.hours = ["0:00", "1:00", "2:00", "3:00", "4:00", "5:00"]; $scope.selected = []; $scope.selects = function() { // automatically adjust the length of the ng-repeat to match available hours return new Array(Math.min($scope.hours.length, $scope.selected.length+1)); }; $scope.notSelectedHours = function($index) { return $scope.hours.filter(function(item) { // keep items that haven't been selected if ($scope.selected.indexOf(item) === -1) { return item; } // keep item that is selected in this repeat if (item === $scope.selected[$index]) { return item; } }); }; $scope.reset = function() { $scope.selected = []; }; }); 前加冒号。 new_row。由于您使用的是11g,因此您不需要into :new_row.application_id,您可以直接指定select into。我也看不出有必要更改nextval伪记录的名称的理由。所以我只是做

:new