Format nullable heading : DECODE « Conversion Functions « Oracle PL / SQL






Format nullable heading

   
SQL>
SQL> column nullable format a10 heading 'NULL|ALLOWED?'
SQL>
SQL> SELECT table_name, column_name,
  2         DECODE(nullable, 'N', 'NO', 'YES') nullable
  3  FROM   all_tab_columns
  4  WHERE  table_name = UPPER('&table_name');
Enter value for table_name:
old   4: WHERE  table_name = UPPER('&table_name')
new   4: WHERE  table_name = UPPER('')

no rows selected

   
    
  








Related examples in the same category

1.Syntax: DECODE
2.Decode char value to number
3.Decode statement could be easily rewritten using the CASE statement
4.Decode for more than one key value pair
5.Use Decode as if statement to logic like 'if then else'
6.DECODE and GROUPING
7.Create a report that shows number of customers per state.
8.Use DECODE and SIGN functions on the ORD table
9.Extract any procedure, function or package
10.Decode the result from row_number over, partition by, order by
11.Decode a column with substr and instr
12.DECODE and substr function
13.DECODE in the GROUP BY clause
14.Demo range comparison with DECODE
15.Use decode as if statement and output 'high' or 'low'
16.Use decode create dynamic select statement
17.decode column data to output more meaningful information