Search notes:

ORA-01481: invalid number format model

The following SQL statement tries to format a large number with apostrophes as thousands-separator. It throws a ORA-01481: invalid number format model error:
select
   to_char(123456789.01234, '999''999''999.00')
from
   dual;
This SQL statement uses an explicit nls_numeric_characters value so that the number is formatted as desired:
select
   to_char(123456789.01234, '999g999g999d00', q'[nls_numeric_characters='.'']')
from
   dual;

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...', 1759044862, '216.73.216.5', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-01481_invalid-number-format-model(47): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78