Search notes:

ORA-00917: missing comma

In the following example, the anonymous PL/SQL block throws the error message ORA-00917: missing comma.
create table tq84_ora_00917 (id integer, txt varchar2(100));

begin
   insert into tq84_ora_00917 (id, txt) values (
      42, 'A 'quoted' word.'
   );
end;
/
This error can be prevented by using the q'…' syntax:
begin
   insert into tq84_ora_00917 (id, txt) values (
      42, q'[A 'quoted' word.]'
   );
end;
/
Cleaning up
drop table tq84_ora_00917;

See also

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...', 1759473799, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-00917_missing-comma(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78