Search notes:

Oracle: Apply an expression on all columns of a table

with params as (
   select '% is null' as expr,
          'or'        as joiner from dual   
)
select
   listagg(regexp_replace(params.expr, '%', c.column_name),
           ' ' || params.joiner || chr(10)
   )
from
   params            cross join
   dba_tab_columns c
where
   owner      = 'SYS'        and
   table_name = 'DBA_USERS'
group by
   params.joiner  -- prevent potential ORA-30496: Argument should be a constant.
--

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...', 1759612611, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/objects/tables/columns/apply-expression(46): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78