Search notes:

ORA-01007: Reference to a variable not in SELECT clause

The following execute immediate has an into clause even though it does not execute a select statement. So, the error ORA-01007: Reference to a variable not in SELECT clause is thrown:
create table tq84_t (a number);
 
-- ORA-01007: variable not in select list
declare
   x number;
begin
   execute immediate 'insert into tq84_t values(:1)' into x using 42;
end;
/
 
drop table tq84_t;

See also

Other Oracle error messages such as

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...', 1745308990, '3.128.186.97', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-01007_Reference-to-a-variable-not-set-in-SELECT-clause(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78