Search notes:

ORA-32618: incorrect use of MODEL PREVIOUS function

The previous() can only be used within the iterate … until clause of a model statement.
Because this function is used outside of the iterate clause, the following statement throws the ORA-32618: incorrect use of MODEL PREVIOUS function error:
select *
from
   dual 
model
   dimension by (0 as id )
   measures     (0 as num)
 rules
   (
      num[iteration_number] = previous(num[iteration_number])
   );

See also

Oracle's model clause
Other Oracle error messages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745308622, '3.142.245.16', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-32618_incorrect-use-of-MODEL-PREVIOUS-function(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78