How many columns a sql selects

I need to find out how many columns are in a sql statement like below:
sql = "select id, decode(description,'','No decription', description), comment from my_table";
The sql string is build dynamically so I don't know it when I write the code. I need to know before I do
call rs.next(), because I need to set up the table header so I need to know how many columns the sql is selecting.
Thanks inadvance.
Botao

You can use the interface ResultSetMetaData,below are some methods of it.
int getColumnCount()
Returns the number of columns in this ResultSet object.
String getColumnName(int column)
Get the designated column's name.
int getColumnType(int column)
Retrieves the designated column's SQL type.
for more infomation ,you can refer to JDBC Online Document.

Similar Messages

  • How many columns can be used in the SELECT Statment

    Hi all,
    How many columns can be used in the SELECT statement?
    Ex: SELECT x1,x2,....xn FROM <table_name>;
    Thanks,
    GowriShankar.N

    Let me join ;-)
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Linux: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL> DECLARE
      2  l_sql varchar2(32000);
      3  begin
      4  l_sql := 'CREATE TABLE T(';
      5  for i in 1..999 loop
      6  l_sql := l_sql ||'C'||i||' NUMBER,
      7  ';
      8  end loop;
      9  l_sql := l_sql||'C1000 NUMBER)';
    10  EXECUTE IMMEDIATE l_sql;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> select count(*) from cols where table_name = 'T';
      COUNT(*)
          1000
    SQL> insert into t(c1) values(1);
    1 row created.
    SQL> select *
      2  from t t1,t t2;
            C1         C2         C3         C4         C5         C6         C7         C8         C9       
    ...   snipped
    C991        C992       C993       C994       C995       C996       C997       C998       C999         C1         C2         C3       C4         C5         C6         C7         C8         C9        C10       
    ...   snipped
    C990       C991       C992       C993    C994        C995       C996       C997       C998       C999
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------          1
                                                                                                                                        1
    SQL>
    SQL> select count(*) from (
      2  select * from t t1,t t2)
      3  ;
    select * from t t1,t t2)
    ERROR at line 2:
    ORA-01792: maximum number of columns in a table or view is 1000Obviously, inline view is obliged the same restrictions as a view, but select list is not constrained.
    Best regards
    Maxim

  • At max how many columns is advisable to create in a table/view

    Hi All,
    I have two transaction table from which i want to create a simple view or materialized view. But the number of columns is about 200. So i want to know at max how many columns is advisable from the performance point of view.
    Even though i will create 200 columns in a view , for a perticular client installation i may not use all the columns.
    one more thing i will never use 200 columns in the select statement . At a time i will use only 4/5 columns.
    It may happen from this four column one column will be the 1st and 2nd column will be the 200th one.
    I want to know how it affects the performance and in which scenario . Please help if any body knows or already faced this kind of scenario.
    I am using oracle 10g .

    Annapurna Nayak wrote:
    thanks for ur reply .
    We are going to use this view in a report , so if i will create it as simple view it will affect report performance. because the view script is too long ...so every time quring to a view will decrease the performance.
    Are you asking me if it will? I think it probably won't but of course you have the means to test it to be sure, right?
    As u said MV should be done with minimum possible column . what can be the maximum column in MV ..??It would be defined by the limits on:
    * The maximum number of columns that a table can contain
    * The size of the query needed to define the select statement
    * Limitations on queries needed to maintain the data
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032

  • How to filter results from 4 dynamic list menus depandant on how many of them are selected

    I have a search page with a form with 4 list menus and 1 submit that post the results to the results page. I can create a record set that either retrieves the correct data from my database if a selection is made from all four menus Or i can create the recordset if only 3 menus have a selection or the same for 2 menus and 1 menu. However i want the user to be able to make a selection from either 1, 2, 3 or all 4 of the menus and the exact data be retrieved. At present if i try to combine the recordset using AND and ORs the results are not specific enough, for example the 4 menus are Location, Type, Price & Style if a user selects from all 4 i only want to retrieve data that matches all 4 criteria, but at the same time if the user selects only 2 of the menus the i want it to retrieve data that matches specifically those 2 variables. I´m not actually sure if i should be creating a more advanced sql query of if its the php side of things that i need to look at. This is my first dynamic site so please be aware i´m still a learner where php and sql is concerned. Please can anyone help?  

    Hey there,
    Thanks for replying,
    I too am using Dreamweaver recordset, my local server is XAMPP ( apache php mysql), i´have pasted my sql recordset below to give an idea of what i´m trying to do, however this does not work as i´m trying to select the exact data based on 4 menus PRICE TYPE LOCATION and BEDS, and also want the search to work if the user only selects options from either 1, 2, 3 or 4 of the menus, with the code as it is if the user select only two options from 2 of the menus the results don´t just find (for example) all results for location AND price they find all results for the location varibale OR the price variable rather than a match for both, if you see what i mean?
    Any suggestions?  
    SELECT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number`
    FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid
    WHERE (location=varloc AND price = varprice AND type=vartype AND beds=varbed ) OR (price=varprice AND location=varloc AND type=vartype) OR  (price=varprice AND location=varloc AND beds=varbed) OR (price=varprice AND beds=varbed AND type=vartype) OR  ( location=varloc AND type=vartype AND beds=varbed) OR  (price=varprice AND location=varloc) OR (price=varprice AND type=vartype) OR (price=varprice AND beds=varbed) OR (type=vartype AND location=varloc) OR (type=vartype AND beds=beds) OR (location=varloc AND beds=varbed) OR (price = varprice OR beds=varbed OR type=vartype OR location=varloc)
    ORDER BY detailstable.trueprice ASC
    Look forward to receiving your thoughts,
    Linda
    Date: Wed, 21 Oct 2009 14:36:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: how to filter results from 4 dynamic list menus depandant on how many of them are selected
    Hiya,
    I'm just doing my first dynamic site too, and am at a similar level to yourself.
    Can you give us more info re the site. What software, eg Dreamweaver etc are you using, and is your server using PHP or ASP etc?
    For what I've used, I amended the SQL side of things in the recordset in Dreamweaver. That way, you can test the SQL as you're setting up the recordset.
    Let me know how you're going on anyway
    Cheers
    Andy
    >

  • I need to know how many objects i got selected

    Hi all,
    I need to know how many objects i got selected for a particular issue and ussualy are too many to count one by one. I know that this information is provided in other software like Corel or Freehand, but I didn't find out how to get this info in Illustrator.
    Any idea?
    Thanks

    Open the Document Info palette.
    From its flyout menu, turn on Selection Only and Objects.
    The palette will not remember those settings. You have to re-select them every time you relaunch Illustrator.
    The Document Info palette is a half-baked hack, tagged-on to display a subset of the information in the normally-hidden programmer's window, instead of incorporating the data properly into the program's interface. So it's another completely unintuitive grab-bag of important information that everyone needs, but no one would expect to look for there.
    JET

  • How can i tell how many emails i have selected in Mail?

    Seems like a simple thing, something i use all the time in outlook. How can I tell how many emails I have selected/highlighted?
    Or for that matter, how many emails are in a folder?

    There is only one model of AirPort card for the Mac pro ( it is draft 802.11n compatible ). Some other intel Mac's may or may not have had the 802.11n enabler update applied. The enabler is/was a $1.99 download from Apple, so priced as the FTC deemed that it "added" features rather than revised existing firmware.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?nplm=D4 141ZM/A

  • How can i get a counter to tell me how many checkboxes have been selected?

    package arabiclanguagelearning;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import java.awt.Rectangle;
    import javax.swing.JTextArea;
    import com.borland.jbcl.layout.VerticalFlowLayout;
    import javax.swing.JLabel;
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Toolkit;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.CheckboxGroup;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.KeyEvent;
    * <p>Title: Arabic Language Learning</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2007</p>
    * <p>Company: </p>
    * @author iPortal
    * @version 1.0
    public class ReadingTest extends JDialog implements ItemListener{
        //ImageIcon myImage = new ImageIcon("image.jpg");
        JPanel panel1 = new JPanel();
        JLabel jLabel1 = new JLabel();
        JLabel jLabel3 = new JLabel();
        JButton jButton1 = new JButton(new ImageIcon ("image.jpg"));
        ButtonGroup question1 = new ButtonGroup();
        CheckboxGroup question2 = new CheckboxGroup();
        JTextArea question1Text = new JTextArea();
        JRadioButton q1A = new JRadioButton();
        JRadioButton q1B = new JRadioButton();
        JRadioButton q1C = new JRadioButton();
        JTextArea question2Text = new JTextArea();
        JTextField question2TextArabic = new JTextField();
        JCheckBox jCheckBox1 = new JCheckBox();
        JCheckBox jCheckBox2 = new JCheckBox();
        JCheckBox jCheckBox3 = new JCheckBox();
        JCheckBox jCheckBox4 = new JCheckBox();
        JLabel jLabel2 = new JLabel();
        StringBuffer choices;
        //will keep a count on how many checkboxes selected for question 2
        int count;
        JLabel jLabel4 = new JLabel();
        JLabel jLabel5 = new JLabel();
        JLabel jLabel6 = new JLabel();
        JButton Submit = new JButton();
        JLabel jLabel7 = new JLabel();
        public ReadingTest(Frame owner, String title, boolean modal) {
            super(owner, title, modal);
            try {
                setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                jbInit();
                pack();
            } catch (Exception exception) {
                exception.printStackTrace();
        public ReadingTest() {
            this(new Frame(), "ReadingTest", false);
        private void jbInit() throws Exception {
            panel1.setLayout(null);
            this.getContentPane().setLayout(null);
            jLabel1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 24));
            jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel1.setIcon(null);
            jLabel1.setText("Welcome to the reading tutorial");
            jLabel1.setBounds(new Rectangle(49, 4, 509, 67));
            jLabel3.setFont(new java.awt.Font("Tahoma", Font.PLAIN, 14));
            jLabel3.setToolTipText("");
            jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel3.setHorizontalTextPosition(SwingConstants.CENTER);
            jLabel3.setText(
                    "Please answer the questions below after reading the text");
            jLabel3.setVerticalTextPosition(SwingConstants.TOP);
            jLabel3.setBounds(new Rectangle(48, 83, 515, 60));
            jButton1.setBounds(new Rectangle(509, 63, 98, 44));
            jButton1.setText("Hide me!");
            jButton1.addActionListener(new ReadingTest_jButton1_actionAdapter(this));
            question1Text.setBackground(Color.lightGray);
            question1Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question1Text.setEditable(false);
            question1Text.setText("What is the first letter of the arabic alphabet?");
            question1Text.setBounds(new Rectangle(64, 158, 319, 19));
            q1A.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1A.setText("?");
            q1A.setBounds(new Rectangle(60, 189, 93, 23));
            q1B.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1B.setText("?");
            q1B.setBounds(new Rectangle(60, 214, 93, 23));
            q1C.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1C.setText("?");
            q1C.setBounds(new Rectangle(60, 241, 93, 23));
            question2Text.setBackground(Color.lightGray);
            question2Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question2Text.setEditable(false);
            question2Text.setText(
                    "Choose the two correct words which finish the sentence.");
            question2Text.setBounds(new Rectangle(64, 281, 402, 19));
            question2TextArabic.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            question2TextArabic.setText("?? ????? ??????? ___ ???? ___ ?? ???????");
            question2TextArabic.setBounds(new Rectangle(63, 311, 404, 30));
            this.setForeground(Color.white);
            jCheckBox1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox1.setText("????");
            jCheckBox1.setBounds(new Rectangle(63, 356, 81, 23));
            jCheckBox1.addActionListener(new ReadingTest_jCheckBox1_actionAdapter(this));
            jCheckBox1.addItemListener(this);
            jCheckBox2.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox2.setText("????");
            jCheckBox2.setBounds(new Rectangle(162, 356, 81, 23));
            jCheckBox2.addItemListener(this);
            jCheckBox3.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox3.setText("??????");
            jCheckBox3.setBounds(new Rectangle(260, 356, 81, 23));
            jCheckBox3.addItemListener(this);
            jCheckBox4.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox4.setText("?????");
            jCheckBox4.setBounds(new Rectangle(359, 355, 81, 23));
            jCheckBox4.addItemListener(this);
            jLabel2.setText("jLabel2");
            jLabel2.setBounds(new Rectangle(63, 402, 234, 32));
            jLabel4.setText("jLabel4");
            jLabel4.setBounds(new Rectangle(63, 433, 254, 28));
            jLabel5.setText("jLabel5");
            jLabel5.setBounds(new Rectangle(63, 465, 194, 37));
            jLabel6.setText("jLabel6");
            jLabel6.setBounds(new Rectangle(63, 500, 258, 32));
            Submit.setBounds(new Rectangle(507, 575, 115, 52));
            Submit.setText("Submit");
            Submit.addActionListener(new ReadingTest_Submit_actionAdapter(this));
            jLabel7.setText("jLabel7");
            jLabel7.setBounds(new Rectangle(472, 480, 95, 34));
            question1.add(q1A);
            question1.add(q1B);
            question1.add(q1C);
            this.getContentPane().add(panel1, null);
            this.getContentPane().add(Submit);
            panel1.add(jLabel1);
            panel1.add(jLabel3);
            panel1.add(q1A);
            panel1.add(q1B);
            panel1.add(q1C);
            panel1.add(question1Text);
            panel1.add(question2Text);
            panel1.add(question2TextArabic);
            panel1.add(jCheckBox1);
            panel1.add(jCheckBox2);
            panel1.add(jCheckBox3);
            panel1.add(jCheckBox4);
            panel1.add(jButton1);
            panel1.add(jLabel6);
            panel1.add(jLabel5);
            panel1.add(jLabel4);
            panel1.add(jLabel2);
            panel1.add(jLabel7);
            panel1.setBounds(new Rectangle(10, 10, 623, 549));
        public void jButton1_actionPerformed(ActionEvent e) {
            this.setVisible(false);
        public void itemStateChanged(ItemEvent e) {
            int index = 0;
            char c = '-';
            Object source = e.getItemSelectable();
    //count variable works fine in this part
            if (source == jCheckBox1) {
                index = 0;
                c = 'c';
                //assign new string variable the value of text for the checkbox
                String textSelected = jCheckBox1.getText();
                jLabel2.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox2) {
                index = 1;
                c = 'g';
                String textSelected = jCheckBox2.getText();
                jLabel4.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox3) {
                index = 2;
                c = 'h';
                String textSelected = jCheckBox3.getText();
                jLabel5.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox4) {
                index = 3;
                c = 't';
                String textSelected = jCheckBox4.getText();
                jLabel6.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            //Now that we know which button was pushed, find out
             //whether it was selected or deselected.
    //count variable does not work in this section.
             if (e.getStateChange() == ItemEvent.DESELECTED) {
                 c = '-';
                 Object deselectedItem = e.getItemSelectable();
                 if (deselectedItem==jCheckBox1)
                     jLabel2.setText("You deselected checkbox 1");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox2)
                     jLabel4.setText("You deselected checkbox 2");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox3)
                     jLabel5.setText("You deselected checkbox 3");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox4)
                     jLabel6.setText("You deselected checkbox 4");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
       

    you can call your_checkbox.isSelected() to know whether it's selected for all your check boxes !
    suppose you have an jcheckbox array : JCheckBox[] myCheckBoxArray = ...;
    int counter = 0;
    for(int i=0; i<myCheckBoxArray.legth; i++){
      if(myCheckBoxArray.isSelected())
      counter++;
    }and that's all

  • How to convert simple SQL Select statements into Stored Procedures?

    Hi,
    How can I convert following SELECT statement into a Stored Procedure?
    SELECT a.empno, b.deptno
    FROM emp a, dept b
    WHERE a.deptno=b.deptno;
    Thanking in advance.
    Wajid

    stored procedure is nothing but a named PL/SQL block
    so you can do it like this see below example
    SQL> create or replace procedure emp_details is
      2  cursor c1 is SELECT a.empno, b.deptno
      3  FROM scott.emp a, scott.dept b
      4  WHERE a.deptno=b.deptno;
      5  begin for c2 in c1
      6  LOOP
      7  dbms_output.put_line('name is '||c2.empno);
      8  dbms_output.put_line('deptno is ' ||c2.deptno);
      9  END LOOP;
    10  END;
    11  /
    Procedure created.and to call it use like below
    SQL> begin
      2  emp_details;
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on;
    SQL> /
    empno is 7839
    deptno is 10
    empno is 7698
    deptno is 30
    empno is 7782
    deptno is 10
    empno is 7566
    deptno is 20
    empno is 7654
    deptno is 30
    empno is 7499
    deptno is 30
    empno is 7844
    deptno is 30
    empno is 7900
    deptno is 30
    empno is 7521
    deptno is 30
    empno is 7902
    deptno is 20
    empno is 7369
    deptno is 20
    empno is 7788
    deptno is 20
    empno is 7876
    deptno is 20
    empno is 7934
    deptno is 10Edited by: Qwerty on Sep 17, 2009 8:37 PM

  • For iTunes. How can I see how many songs I have selected?

    It just  a simply question. With the previous iTunes it was possible to see how many songs you selected in the part below. Can I still see it now with iTunes 11?

    tt2

  • How to detect how many LOV values user selects on a WEBI Prompt

    Hello Gurus,
    Is there a way to identify how many LOV Values the user selects on a Webi prompt that allows multiple value selection?
    For EG: If I have a webi and there's a prompt called State on the WEBI and the user selects "Utah", "Ohio" and "Texas" from the LOV and runs the query; is there a formula I can use to get the value as 3 (no.of selections)? If that's not possible, is there a way to find out if the user has selected more than 1 value?
    Thanks,
    RC

    Hello,
    From what I know there is no direct way of figuring it out. But here is a little trick.
    Create a variable to capture the user response. Lets call it - State Prompt
    It should display the values like this: Utah;Ohio;Texas
    Next, get the length of the response string by using the length function.
    =Length([State Prompt]). It should give you 15 in our above example.
    Now, create another variable [let's call it - Replaced State Prompt] where you use Replace function, to replace/remove the ";" from the response string.
    =Replace([State Prompt];";";"")
    Next, get the new length of the new response string by using the length function.
    =Length([Replaced State Prompt]). It should give you 13 as it removed two ";".
    Now, do a subtraction and add 1 to get the count.
    Overall it should be something like this-
    =Length(UserResponse("Enter State")) - Length(Replace(UserResponse("Enter State");";";""))+1
    Hope this helps.
    Gaurav

  • How many columns to index

    Hi,
    I have a table t1 which has nearly 20000 rows. It is accessed by a query which has 3 columns in its where clause lets say col1, col2 and col3. the table doesn't have any index so it does a full table scan. Now if I put an index on all the 3 columns it uses the index and avoids the FTS. Also if I index just 2 columns instead of three then also it uses index (something that I don't know why). my question is should I index the two coulmns or three columns? the third column which i left out has nearly 8000 distinct values.
    the query is of the form:
    select col5 from table1 where col1=value1 and col2=value2 and col3=value3 and rownum=1
    the execution plan with index on three columns is:
    Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    0 | SELECT STATEMENT | | 1 | 24 | 2 (0)| 00:00:01 |
    * 1 | COUNT STOPKEY | | | | | |
    * 2 | TABLE ACCESS BY INDEX ROWID| table1     | 1 | 24 | 2 (0)| 00:00:01 |
    * 3 | INDEX RANGE SCAN | ind-3col | 1 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("col1"=6003 AND "col2"=1532 AND
    "col3"=267)
    the execution plan with index on two columns is:
    ======
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 24 | 2 (0)| 00:00:01 |
    |* 1 | COUNT STOPKEY | | | | | |
    |* 2 | TABLE ACCESS BY INDEX ROWID| table1 | 1 |     24 | 2 (0)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | ind-2col | 1 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    1 - filter(ROWNUM=1)
    2 - filter("col3"=267)
    3 - access("col1"=6003 AND "col2"=1532)
    I don't know if I should index on 2 columns or 3 columns...can someone suggest?
    Thanks
    Edited by: orausern on Feb 8, 2010 5:28 AM
    Edited by: orausern on Feb 8, 2010 5:29 AM

    Hi,
    To index or not to index on columns would totally depends on type of query(update/delete/select) being run on that table.
    So you need to check all/majority of the query that would be running on this table to decide which column should be indexed.
    eg:
    If i have just one query which you posted that would be running against this table then I would have index on all the three columns.
    But only 10-20% of the query would be making use of all the three columns, and rest 70-80% of the queries are making use of same 2 out of these 3 columns then I would be indexing only 2 columns.
    I suppose you would also like to understand that queries also determines which column would be leading column in index.
    Index makes select queries to run faster in most of the case, but it also makes insert statements run slower and utilized space. So keeping all this factor in mind it should be decided on which columns and in which order should we index.
    Regards
    Anurag

  • How many column can I make in a table or view??

    What is the maximum column that I can create in a table or a view in Oracle9i??
    When I create a view of 500 columns, I encountered an error "too many sort key", can any one tell me what is the limit for Oracle9i on number of column

    I believe the limit was raised to 1000 columns in 8i; that's certainly what it is in 9i. At a guess I would suspect your problem is the number of columns in your GROUP BY or ORDER BY clause. It would be helpful if you posted the error number, the ORA-nnnnn bit.
    Cheers, APC

  • How many records will be selected by query ?

    Hello experts,
    what is the effect of filtered constant value (set in the filter area) on authorization? if a user is authorized for 3 values of a char, namely, abc, def and colon (,  and in the query this char is restricted to a constant value which is one
    of the 3 values, for example, abc, does the user get to display aggregated amounts of 3 similar records which are differentiated only by the char in question or is it that the filter will neutralise the effect  of the colon such that user can only can see the record containing value abc instead of aggregated amount, assuming there are only 3 records in the cube?
    many thanks.
    YHogan
    *I promise to award points for good answers.

    Hello,
    not sure that i have right understood your question.
    The : authorization has the effect, if you do not include the appropriate char in the query, the query then aggregates the data over the char, the user can see the results. If you have the char in the query (for example in the filter part), you should restrict it to the authorized values (: will be not taken in account).
    Commonly the system compares the structure of the query (or the generated SELECT statement) vs. the user authorization and does not compare the returned data vs. user authorizations.
    Hope this helps,
    Regards,
    Kirill

  • Know how many JPanel has been selected

    Hi, i had somethings to do, and i really dont figure how to do it, i have an applet that is a kind of paint, and each draw is done on a new JPanel so is there a way to know which JPanel the user has select if i want to be able to select more than one JPanel. Dont know if you understand, my english isnt so good... Could be like a selection tool but i want to know which JPanel has been selected between x,y and width,height of a rectangle made with the mouse....
    thx for the help

    i could go with a getComponentAt to know which one has been under the selected rectangle, but dont know how can i move it all after i know which one has been selected with the mouse

  • How many columns can be display if use Class cl_gui_alv_grid?

    Hi,
        I have a fieldcat table which contains 200 items. But it only shows about 90 columns in my alv display.
    I use function: LVC_FIELDCATALOG_MERGE to build fieldcatory and I found there are 200 records in my fieldcatory internal table when I debug it.
        Can anyone give me some advise to show full culomns in my alv display?
        Thanks a lot~

    Hi,
    In Debug mode check check the NO_OUT field for each entry in the Field Catalog. If it has the value X for some fields then those fields will not be displayed.
    Or check is there any Layout Variant is passed to the IS_VARIANT parameter.

Maybe you are looking for

  • How to add jar files in project?

    Hi everyone, Im stuck at one problem. I have third party API which are in jar files. I want to add reference those jar files in my projects. How to add all jar files at once in my project? Also, jar files are in different folders, like rootFolder {no

  • Fan problem...

    Can anyone tell me why my fan is a little loud on my macbook pro. I have the newest model, and I dont have that much stuff on here at all, I am running with Lion. When I got it 4 months ago I could not hear the fan, but as time goes on the fan gets l

  • FaceTime with a iPod Touch bought from Dubai?

    My friend bought a 4th gen iPod Touch from Dubai which has iOS 4.1 (8B118) installed. Model No. MC540AB. We opened the box here in India & later came to know that FaceTime is blocked in gulf countries & therefore we don't see any FaceTime app on our

  • Contrast adjustment creates color cast - why and how to fix?

    I used a local curves adjustment (with a layer mask) set to "Strong contrast" to make the space shuttle "pop" in a particular shot. I looked it so much I copied that adjustment layer to the rest of the launch sequence. I then realized that as I went

  • "Need Disk" error when reinstalling CS5

    I tried to install my purchased CS5 on a new computer, but I get an error message saying I need to insert the Design Standard English disk.  I re-downloaded the program files, so it should not be missing any files, but it still gives me the same erro