MAX number of columns in Oracle

What is the maximum number of columns allowed in an Oracle table?

1000

Tags: Database

Similar Questions

  • Max Number of columns allowed in Discoverer 9i / 10g report

    Hello

    I need to prepare a report of discoverer 9i which has 62 columns. Does anyone know how the Max number of columns is allowed in discoverer reports. I'll be able to include all of the 62 columns without any problem?

    Thanks advanced

    Lokesh.

    Hello
    Although I couldn't find any document about it, I don't think that you will have a problem with the discoverer.
    I don't know how the java it take good care.
    From the Viewer (and I hope I'm not mistaken and mislead you) in the definition of columns
    You can choose up to 999 columns to present so I guess that there will be no problem with 62.

  • How to count the number of columns in an oracle table using sql

    How to count the number of columns in an oracle table using sql

    You must put the name of the table in capital letters

    As

    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    
    or
    
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');
    

    Concerning
    Arun

  • CRUD for tables with large number of columns

    Hello

    I work for a government agency in Colombia, and we do a poll with about 1200 variables. Our database model has few paintings, but they have a large number of columns. Our Oracle 11 g database is, and we do not use Oracle APEX. I've read about APEX and it seems to be useful to generate quick forms and reports. However, I would like to know if it is possible to generate CRUD for tables with many columns, and that would be the best way to do it.

    Thanks in advance.

    Carlos.

    With the help of 250 point on a single page is actually really bad for the user experience. I would probably be it cut into pieces and using several pages to guide the customer through it as a workflow.

    You could also add some pop-up windows which includes some elements of your table, just saved on other pages. But I probably don't like that.

    Tobias

  • How can I know the number of columns in a TYPE?

    Hello

    If we have a guy like below

    type vc_arr2 is table of the varchar2 (32767) index directory.

    How can I get the number of columns?

    Minoo.TK wrote:

    Hello

    If we have a guy like below

    type vc_arr2 is table of the varchar2 (32767) index directory.

    How can I get the number of columns?

    It is a type of associative array definition. A table has no columns. It is a collection of elements (variables or values). An array location is usually called a cell.

    The standard method Count() exist in Oracle for all table types.

    As for the definition of the table, as in structures, variables make the table contain - associative array is defined in the PL/SQL code and does not exist in the layer of metadata to the database as a new user-defined type. For the definition, you must read the declaration of PL/SQL defining the table.

    Note that there is very rarely the need for associative tables in PL/SQL - 99% of the time they are used without any idea as to what as a table associative is also.

  • editing a table to add the number of columns fails with ORA-01792

    I'm editing a table to add columns, and ORA-01792 receiver: maximum number of columns in a table or view is 1000. The table of the altar will be no more than 1000 columns. The environment is RHE5 Oracle 11.2. ALTER statement adds a lot of columns in the table, but when I do a manual change to add a dummy column it works, after that, if I run the original the change works!

    What is a table compressed with unused columns?

    This may explain the error with the limit of 1000.

  • Number of columns in a logical and line refers

    I need help for oracle SQL,


    (Unique) student has five races in a table

    I need a select statement with student_id - 1 column


    I need to count the number of columns with values 'Yes' in them

    the columns are race5 for a single line, race3, race1 race2, race4 - this should be ndcolumn 2


    The 3rd column must contain the maximum of the race with 'Yes' in the

    That is to say if race1 and race 3 'yes' in them are values I need 3 in the column next, - 3rd column

    Can someone help me with this

    Hello

    As stated by John, the datamodel is wrong and keep it as a separate table (student_id, race_id) will be ideal. But, if you want to continue to use your existing data model, you can use something like

    WITH students AS (SELECT 1 student_id,
                             'Yes' race1,
                             'No' race2,
                             'Yes' race3,
                             'No' race4,
                             'Yes' race5
                        FROM DUAL
                      UNION ALL
                      SELECT 2 student_id,
                             'Yes' race1,
                             'No' race2,
                             'Yes' race3,
                             'Yes' race4,
                             'No' race5
                        FROM DUAL)
    SELECT student_id,
           DECODE (race1, 'Yes', 1, 0)
        + DECODE (race2, 'Yes', 1, 0)
        + DECODE (race3, 'Yes', 1, 0)
        + DECODE (race4, 'Yes', 1, 0)
        + DECODE (race5, 'Yes', 1, 0) count_race,
           CASE
             WHEN race5 = 'Yes' THEN 5
             WHEN race4 = 'Yes' THEN 4
             WHEN race3 = 'Yes' THEN 3
             WHEN race2 = 'Yes' THEN 2
             WHEN race1 = 'Yes' THEN 1
             ELSE 0
           END max_race
      FROM students
    

    Thank you
    sukhijank

  • The limit to the number of columns to display in the report. Help!

    Hi all

    Maybe this is a stupid question. But why get this error with a report of the IR? and what is the solution for this. Please help me with this.

    Error

    The limit to the number of columns to display in the report. Please, click on select columns under Actions menu to minimize the list of columns in report view.

    Oh... And I also have a blob column... If the format is not given, the table is very good... but happen to get this error only when the BLOB download format is given.

    Thanks and greetings
    John

    Published by: JB on March 30, 2012 11:08

    Hello

    I implemented a small suitcase of test on apex.oracle.com and I get the error even if I use the download format.

    I have a table
    test_blob (identification number, name varchar2 (10), blobcont blob)

    If I create IR as

      select
        id,
        name,
        blobcont
      from test_blob
    

    and then I set the download format I got the error.

    If you want this to work you need to change your query to

      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blob
    

    And there still define download for blob on column blobcont format.

    Kind regards
    Aljaz

  • Add a large number of columns to a shape

    Is there an easier way to add a large number of columns to a form of how I do it?
    What happens in general I find that a bunch of columns must be added to the table, what I do in the database. So I need to get these
    columns added to an existing form. As I do that is to create a new block in the form of referencing the same table, just like the old block.
    Delete all the columns in the new block that were in the old block.
    Move all the triggers of old block of the old block to the new block. Move old items to the old block of the newblock.
    Search for old block properties where clauses or whatever and who recreate in the new block...
    and then delete the old block and rename the new block to the old name of block.
    Phew! A lot of potential for error here.
    I need to possibly adjust the canvas for items and of course to reorganize things.

    Is there a better way?

    (BTW it's forms 11.1.1.4)

    Published by: Lake on May 5, 2011 10:15

    Published by: Lake on May 5, 2011 10:20

    Maybe create a routine of jdapi to compare the elements of a block known based on a table with the data dictionary ( user_tab_cols )? As each piece of information is given in the database (data type, the column name,...) should not be too difficult to implement.

    http://www.Oracle.com/technetwork/Developer-Tools/Forms/documentation/jdapi904019-131445.zip

    see you soon

  • How to make the lines dynimac columns in Oracle PL/SQL?

    I have this request:
    select cso.branch,
      decode(NVL(cso.YES,0)+ NVL(cso.NO,0)+ NVL(cso.NA,0),0,'N','Y') ||' - '|| NVL(cso.officer,0) AS CSO_YN
    from (
    SELECT A.BRAN_CODE_PK as branch, a.emp_code_pk as officer, 
       COUNT(CASE WHEN D.STATUS = 1 THEN D.STATUS ELSE NULL END) YES,
       COUNT(CASE WHEN D.STATUS = 2 THEN D.STATUS ELSE NULL END) NO,
       COUNT(CASE WHEN D.STATUS = 3 THEN D.STATUS ELSE NULL END) NA
    FROM sales_team_accounts A, users U LEFT OUTER JOIN daily_check_lists D ON (D.USER_ID_PK = U.EMP_OFFICER_CODE
                                                                    and to_date(D.CHECK_LIST_DATE, 'DD-MON-YYYY') = '08-JUL-2010' ) -- date should be the parameter date)
    WHERE 1=1
    AND A.EMP_OFFICER_CODE = U.EMP_OFFICER_CODE
    AND A.sale_type_fk = 101 -- CSO
    AND A.SUPV_EMP_CODE_FK != 0
    and a.BRAN_CODE_PK = 1001
    group by A.BRAN_CODE_PK, a.emp_code_pk
    ) cso;
    The result of this query is the following:
    BRANCH     CSO_YN
    --------------------------------------
    1001             Y - 321
    1001             N - 335
    1001             Y - 90050
    1001             N - 303
    The scenario is, there could be maximum 7 officers in a branch,
    the total number of columns must therefore 7, and employee Y or N must be shaped in these 7 columns.

    So for each branch, it will always be 1 row to have 7 columns:
    So I want that it resembles the following:
    BRANCH     CSO1      CSO2      CSO3         CSO4       CSO5     CSO6     CSO7
    -----------------------------------------------------------------------------------------------------------
    1001        Y - 321    N - 335    Y - 90050    N - 303
    Need to do using only the PL/SQL query

    Published by: imation3m on October 22, 2010 12:21

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:766825833740
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:15151874723724
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:7644594042547

  • Dynamic number of columns in the table

    Hello

    I use JDev 10.1.3.3.0 with ADF. I just want to create a table, with a dynamic number of columns in the table. The background is that a user of my webapplication can create and submit a sql query. Now, I have to show him the results. My idea was, I have save the result in a bean managed (ResultTable), which is stored in the session context and map at my table in my page.

    If I search the Forum and don't get only one useful thread: {: identifier of the thread = 971888}, but I don't exactly understand. What is the CollectionModel? Do I need this?

    I'm trying to report on the following:

    ResultTable
    public class ResultTable {
    
        public static final String SESSION_NAME = "ResultTable";
        private ArrayList<ResultColumn> columnList; 
        private CollectionModel collectionModel;
    
        public ResultTable() {
        }
    
        public ArrayList<ResultColumn> getColumnList() {
            return columnList;
        }
    
        public void setColumnList(ArrayList<ResultColumn> columnList) {
            this.columnList = columnList;
        }
    }
    ResultColumn
    public class ResultColumn {
        
        private ArrayList<ResultRow> rowList;
        private String name;
    
        public ResultColumn() {
        }
    
        public ArrayList<ResultRow> getRowList() {
            return rowList;
        }
    
        public void setRowList(ArrayList<ResultRow> rowList) {
            this.rowList = rowList;
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    }
    ResultTable
    public class ResultRow {
        
        private String value;
    
        public ResultRow() {
        }
    
        public String getValue() {
            return value;
        }
    
        public void setValue(String value) {
            this.value = value;
        }
    }
    My showResult.jspx
    <af:table emptyText="No items were found"
              value="ResultTable.columnList"
              var="column"
              varStatus="colStatus"
              id="table1">
      <af:forEach items="#{column.rowList}" var="row" varStatus="rowStatus">
        <af:column sortable="false" headerText="#{column.name}" 
                   id="column#{colStatus.index}">
          <af:outputText value="#{row.value}"
                         id="outputText#{rowStatus.index}"/>
        </af:column>
      </af:forEach>
    </af:table>
    The ResultTable was filled with data, but the Board is not filled. So, I think, it must be rejected to the data binding.

    I get warnings and errors to run too. But I don't know if they are the result or cause of my problem.
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer renderTableWithoutColumns
    WARNUNG: Table with id: form1:table1 has no visible columns!
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:span does not match start name:div
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:span does not match start name:div
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:form does not match start name:span
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:body does not match start name:form
    27.10.2009 10:15:41 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElement
    SCHWERWIEGEND: Element End name:html does not match start name:body
    Concerning

    Majo

    Hi Mario,.

    
      
        
          
        
      
    
    

    Note that your JSPX snippet above has serious shortcomings:

  • 'ResultTable.rowList' is not an EL expression, but the value attribute of the af: table must refer to an EL expression
  • Items AF:foreach = "#{row.cellList}"-you don't have to store information about the columns of all rows, more it won't work as af:forEach tag may not see the value of the expression of EL #{line} (or any component EL expression created). " See the tagdoc here: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/forEach.html
  • "ID =" Column #{cellStatus.index} "and id =" outputText #{rowStatus.index} "are invalid and that they don't compile even as id attributes cannot contain EL expressions.

    .

    I think to solve your problem, you need three things:

  • List of columns (for example the list If you need to store only the names of column or list If you need additional information),.
  • list of lines,
  • a line can be a map (with the name of the column - cell data mapping; card e.g.) or a list (with columns indexed; for examplelist).

    Example with the lines of the map:

    JSPX snippet:

    
      
        
          
        
      
    
    

    The ResultTable bean:

    public class ResultTable {
    
        private List columnList;
        private List> rowList; 
    
        public ResultTable() {
        }
    
        public List getColumnList() {
            return columnList;
        }
    
        public void setColumnList(List columnList) {
            this.columnList = columnList;
        }
    
        public List> getRowList() {
            return rowList;
        }
    
        public void setColumnList(List> rowList) {
            this.rowList= rowList;
        }
    
    }
    

    Type ResultColumn:

    public class ResultColumn {
    
        // additional fields if needed...
        private String name;
    
        public ResultColumn() {
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    }
    

    AF:table display correctly after the initialization of the values in your beans properly filled ResultTalbe (e.g. to fill the list of rank with the lines).

    Hope this helps,
    Patrik

  • Number of columns in the region

    Hi all
    I organize my regions in 14columns...

    but I see that the maximum columns available as '9 '...

    is it possible to increase the number of columns...

    I also have a small matter to organize my regions in any of columns...

    example of application is to:

    workspace: bi_development
    United Nations and pwd: apexforum
    Appl: test

    Thank you
    you're really healpful.

    Hello

    First of all, you can not go higher than 9 columns. You would need to adjust the page template somehow to put two regions-by-side and then use columns 1 to 9 in the first one and 1-5 in the second to get all 14 columns in. It may be possible with a style

    For you, 2 x 2 reports - you can do this by adding a div around the content of the report. Header area the region add in something like:

    <div style="height:100px;">
    

    and then close the div in region Footer area:

    </div>
    

    I created a new page in your application that does this. But here's another example to do the same thing (but with a height of 300px): [http://apex.oracle.com/pls/otn/f?p=267:28]

    Andy

  • ORA-01730: number of column names specified invalid

    I am trying to create a view. The select statement by itself works very well. The create view statement becomes an error ORA-01730.

    SQL > CREATE OR REPLACE VIEW STAFFING. V_FORECAST_EXCEPTION_XTAB
    2 AS
    3. SELECT
    V_EMPLOYEE_FORECAST_EXCEPTION 4. EMPLOYEE_NAME,
    V_EMPLOYEE_FORECAST_EXCEPTION 5. AFC,
    6 V_EMPLOYEE_FORECAST_EXCEPTION. COST_CENTER,
    V_EMPLOYEE_FORECAST_EXCEPTION 7. FUNDS,
    V_EMPLOYEE_FORECAST_EXCEPTION 8. PAY_PLAN,
    CURRENT_FY.FY 9,.
    10 SUM (DECODE (MV_PAYROLL_CY. PP, 21, MV_PAYROLL_CY. PAY_AMT, 0)) PP21.
    11 SUM (DECODE (MV_PAYROLL_CY. PP, 22, MV_PAYROLL_CY. PAY_AMT, 0)) PP22,.
    12 SUM (DECODE (MV_PAYROLL_CY. PP, 23, MV_PAYROLL_CY. PAY_AMT, 0)) PP23,.
    13 SUM (DECODE (MV_PAYROLL_CY. PP, 24, MV_PAYROLL_CY. PAY_AMT, 0)) PP24,.
    14 SUM (DECODE (MV_PAYROLL_CY. PP, 25, MV_PAYROLL_CY. PAY_AMT, 0)) PP25.
    15 SUM (DECODE (MV_PAYROLL_CY. PP, 26, MV_PAYROLL_CY. PAY_AMT, 0)) PP26,.
    16 SUM (DECODE (MV_PAYROLL_CY. PP, 1, MV_PAYROLL_CY. PAY_AMT, 0)) PP01.
    17 SUM (DECODE (MV_PAYROLL_CY. PP, 2, MV_PAYROLL_CY. PAY_AMT, 0)) PP02.
    18 SUM (DECODE (MV_PAYROLL_CY. PP, 3, MV_PAYROLL_CY. PAY_AMT, 0)) PP03,.
    19 SUM (DECODE (MV_PAYROLL_CY. PP, 4, MV_PAYROLL_CY. PAY_AMT, 0)) PP04,.
    SUM (DECODE (MV_PAYROLL_CY 20. PP, 5, MV_PAYROLL_CY. PAY_AMT, 0)) PP05,.
    21 SUM (DECODE (MV_PAYROLL_CY. PP, 6, MV_PAYROLL_CY. PAY_AMT, 0)) INTRODUCED PP06.
    SUM (DECODE (MV_PAYROLL_CY 22. PP, 7, MV_PAYROLL_CY. PAY_AMT, 0)) PP07,.
    23 SUM (DECODE (MV_PAYROLL_CY. PP, 8, MV_PAYROLL_CY. PAY_AMT, 0)) PP08,.
    24 SUM (DECODE (MV_PAYROLL_CY. PP, 9, MV_PAYROLL_CY. PAY_AMT, 0)) PP09,.
    25 SUM (DECODE (MV_PAYROLL_CY. PP, 10, MV_PAYROLL_CY. PAY_AMT, 0)) PP10,.
    SUM (DECODE (MV_PAYROLL_CY 26. PP, 11, MV_PAYROLL_CY. PAY_AMT, 0)) PP11,.
    27 SUM (DECODE (MV_PAYROLL_CY. PP, 12, MV_PAYROLL_CY. PAY_AMT, 0)) PP12,
    28 SUM (DECODE (MV_PAYROLL_CY. PP, 13, MV_PAYROLL_CY. PAY_AMT, 0)) PP13,.
    29 SUM (DECODE (MV_PAYROLL_CY. PP, 14, MV_PAYROLL_CY. PAY_AMT, 0)) PP14.
    30 SUM (DECODE (MV_PAYROLL_CY. PP, 15, MV_PAYROLL_CY. PAY_AMT, 0)) PP15,.
    SUM (DECODE (MV_PAYROLL_CY 31. PP, 16, MV_PAYROLL_CY. PAY_AMT, 0)) PP16,.
    32 SUM (DECODE (MV_PAYROLL_CY. PP, 17, MV_PAYROLL_CY. PAY_AMT, 0)) PP17,.
    33 SUM (DECODE (MV_PAYROLL_CY. PP, 18, MV_PAYROLL_CY. PAY_AMT, 0)) PP18,.
    34 SUM (DECODE (MV_PAYROLL_CY. PP, 19, MV_PAYROLL_CY. PAY_AMT, 0)) PP19,.
    35 SUM (DECODE (MV_PAYROLL_CY. PP, 20, MV_PAYROLL_CY. PAY_AMT, 0)) PP20
    36 FROM
    V_EMPLOYEE_FORECAST_EXCEPTION 37,
    CURRENT_FY 38,
    39 MV_PAYROLL_CY
    40. WHERE THE
    V_EMPLOYEE_FORECAST_EXCEPTION.FY 41 = CURRENT_FY.FY
    42 AND V_EMPLOYEE_FORECAST_EXCEPTION. EMPLOYEE_NAME = MV_PAYROLL_CY. EMP_NAME
    43 AND V_EMPLOYEE_FORECAST_EXCEPTION. COST_CENTER = SUBSTR (MV_PAYROLL_CY.ORG_CODE, 1, 6)
    44 AND V_EMPLOYEE_FORECAST_EXCEPTION. FUND = MV_PAYROLL_CY. FUND
    45 AND V_EMPLOYEE_FORECAST_EXCEPTION. PAY_PLAN = MV_PAYROLL_CY. PAY_PLAN
    46 AND V_EMPLOYEE_FORECAST_EXCEPTION.FY = MV_PAYROLL_CY.FY
    47 AND V_EMPLOYEE_FORECAST_EXCEPTION. PP = MV_PAYROLL_CY. PP
    48 AND V_EMPLOYEE_FORECAST_EXCEPTION. AFC = SUBSTR (MV_PAYROLL_CY. SAC, 3, 2)
    49 GROUP BY
    50 V_EMPLOYEE_FORECAST_EXCEPTION. EMPLOYEE_NAME,
    51 V_EMPLOYEE_FORECAST_EXCEPTION. AFC,
    52 V_EMPLOYEE_FORECAST_EXCEPTION. COST_CENTER,
    53 V_EMPLOYEE_FORECAST_EXCEPTION. FUNDS,
    54 V_EMPLOYEE_FORECAST_EXCEPTION. PAY_PLAN,
    55 CURRENT_FY.FY;
    SUM (DECODE (MV_PAYROLL_CY. PP, 21, MV_PAYROLL_CY. PAY_AMT, 0)) PP21.
    *
    ERROR on line 10:
    ORA-01730: number of column names specified invalid

    More likely [Bug 3040464 - defined views as ALIAS.* selection should be expanded | https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=3040464.8]

    SY.

  • Variable number of columns

    Hello world

    I am a novice for Oracle SQL. I need to create a report where the number of columns, 1-6, be won't know until the report is run. Each column is a COUNT (*) business for a month.

    The user will provide the beginning month & year and the number of months to report.

    My challenge is to summarize the activity as is indicate below with the growing months from left to right and totals for the line.

    My sql is too less. It's a good start, or I'm in foul territory. I should add that eventually there will be multiple lines with line subtotals and totals in case it makes a difference at this point.

    How to genereate the right number of columns with the correct titles for each month?

    Thanks in advance for your help,

    Lou

    The SQL, I have developed so far
    SELECT
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198801') ' 01/1988 ',.
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198802') ' 02/1988 ',.
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198803') ' 03/1988 ',.
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198804') ' 04/1988 ',.
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198805') ' 05/1988.
    (COUNT (*) SELECT TABLE_NAME FROM WHERE TO_CHAR (DATE, 'YYYYMM') = '198806') ' 06/1988 ',.
    (SELECT COUNT (*) FROM TABLE_NAME WHERE TO_CHAR(DATE,'YYYYMM') BETWEEN ' 198801 'and ' 198806') 'Total '.
    FROM DUAL;

    Product of the results of this
    01/1988 02/1988-03/04/1988 of 1988 05/1988-06/1988 total
    111 97 122 110 123 126 689

    If you use SQL * as the reporting tool, you can creatively apply the substitution variables and statements of column redefine your topics (assuming you are using my code above with variable bind this code will rewrite headers, but you can disable output while the configurations):

    var year varchar2(4)
    var month varchar2(2)
    var months number
    
    begin
      :year := &year;
      :month := &month;
      :months := to_number(&months);
    end;
    /
    
    column h1 new_value h1 noprint
    column h2 new_value h2 noprint
    column h3 new_value h3 noprint
    column h4 new_value h4 noprint
    column h5 new_value h5 noprint
    column h6 new_value h6 noprint
    
    select 'c1 heading "' || :year || '-' || to_char(to_number(:month)+0,'fm00') ||
           '"' || case when 1 > :months then ' noprint' else ' print' end h1
         , 'c2 heading "' || :year || '-' || to_char(to_number(:month)+1,'fm00') ||
           '"' || case when 2 > :months then ' noprint' else ' print' end h2
         , 'c3 heading "' || :year || '-' || to_char(to_number(:month)+2,'fm00') ||
           '"' || case when 3 > :months then ' noprint' else ' print' end h3
         , 'c4 heading "' || :year || '-' || to_char(to_number(:month)+3,'fm00') ||
           '"' || case when 4 > :months then ' noprint' else ' print' end h4
         , 'c5 heading "' || :year || '-' || to_char(to_number(:month)+4,'fm00') ||
           '"' || case when 5 > :months then ' noprint' else ' print' end h5
         , 'c6 heading "' || :year || '-' || to_char(to_number(:month)+5,'fm00') ||
           '"' || case when 6 > :months then ' noprint' else ' print' end h6 from dual;  
    
    col &h1
    col &h2
    col &h3
    col &h4
    col &h5
    col &h6
    

    Published by: Sentinel on January 29, 2009 11:26

  • Need to limit the number of columns

    When a tab in the last cell of the row, I want the cursor to the next line down. Instead, it creates a new useless column. Can't seem to find a setting that allows me to limit the number of columns in a page - someone ' one knows how to do this?

    Thanks for your wisdom shared, Oh wise Ones.

    I'm not aware of do what you want.  You can post your comments directly to Apple using the menu item "numbers > provide Feedback numbers.

    You can still use the key combinations:

    < command > + < right arrow > to access at the end of a line

    < command > + < left arrow > to move to the beginning of a line

    < command > + < down > to pass at the end of a column

    < command > + < arrow > to move to the beginning of a column

Maybe you are looking for