Search notes:

SQL*Plus: COLUMN … FORMAT …

column txt format a10
column num format 990.99

select 'foo'  txt,  27.1  num from dual;
--
-- TXT            NUM
-- ---------- -------
-- foo          27.10


select 'foo bar'  txt,  123.456  num from dual;
--
-- TXT            NUM
-- ---------- -------
-- foo bar     123.46

select 'foo, bar and baz'  txt,  1234.5678  num from dual;
--
-- TXT            NUM
-- ---------- -------
-- foo, bar a #######
-- nd baz            


--
--         Columns formated as numericals must be
--         numerical in order to be formated:
--       
--
select 42  txt, '7.234'  num from dual;
--
--       TXT NUM  
------------ -----
--        42 7.234

See also

Column formats can be reset with clear column
attribute
set numformat and set numwidth

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...', 1759429408, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL-Plus/column/format/index(74): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78