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

Similar Messages

  • How many entries can we put in the select options

    Hi all,
    As per  my requirement I am trying to store the data in the select-option( s_kunnt)  as below
    select kunnr from kna1 into (l_kunnr) where
                and spart in p_spart.
      move 'I'         to s_kunnr-sign.
      move 'BT'        to s_kunnr-option.
      move l_kunnr to s_kunnr-low.
      move l_kunnr  to s_kunnr-high.
      append s_kunnr.
    endselect.
    Using s_kunnr in the select statement to fetch the data.
    When the customer numbers are more than 1800 in the s_kunnr, select statment going to the dump. Is number of entries in the select options are restricted for some count( around 1800)?.
    How many entries can we put in the select options?
    Thanks
    Regards
    Raj.

    Firstly, there is an error in your code. You should do the following instead:
    move 'I' to s_kunnr-sign.
    move 'EQ' to s_kunnr-option.
    move l_kunnr to s_kunnr-low.
    append s_kunnr.
    To answer your original question, the limit depends on the field width you are using in the ranges. If the field width is small, you can have thousands of entries in the range table.
    The limitation is in the length of the SQL statement string generated by the ABAP OPEN SQL engine. With the way I defined it above, the statement would have WHERE KUNNR IN ( 'value1', 'value2', 'value3'). With way you defined it, it would have WHERE KUNNR BETWEEN 'value1' and 'value1' and KUNNR BETWEEN 'value2' and 'value2'.
    When the range table is so large that it results in a short dump, you should look into FOR ALL ENTRIES option of SQL.

  • IMessage how many iPhones can you use with the same iMessage account

    i have both a phone number in Ecuador and one in the USA when i visit and i want people that write me on my ecuadorian account will be able to write me on my USA phone number too. i assume that since you can push i message to otehr devices you could theoretically do so with two iphone or two iphone lines?
    also does imessage works on edge? like everything else?

    All my family devices are tied to one Apple ID.  We did that b/c we would consolidate our purchases by syncing via 1 Mac in the house.  So any device could purchase an app/music/whatever, then we would plug it into the main Mac and transfer the purchase to that and then plug in other devices and add to them.  Pain the rear!  I think my example of tedious process above is one reason for iCloud.  So, now with iCloud we should be able to purchase from any device and the other devices would have access without wires.   I thought the only way to tie them all together is if they are all under the same AppleID.  That is how iCloud knows they are related, right?  Makes sense to me.   However, on each device, we use their own @me/@mac email account to setup iCloud b/c each email is tied to that family member but under the master Apple ID for our family.  Each email account has their own contacts, emails, etc.  I thought that was the way to setup.  Shouldn’t this work?  Kind of separate but yet tied together via the 1 Apple ID.  Thoughts?

  • How many devices can i use with the time capsule?

    When I said devices, I mean iphone, ipad, macbook and imac

    Out of the box, the Time Capsule will support 50 Wireless devices and 150 Wired Ethernet devices.
    You can add capability for another 50 Wired devices for a total of 200 if needed.

  • How many iDevices can you use for the same apple id?

    Id just like to know for future refence if i get an iMac etc.

    As many as you can afford...
    You can load protected content on up to five computers. Those computers can load content onto any device. You can select up to ten computers and iOS devices to recieve automatic downloads of your purchases.
    tt2

  • HOW MANY PAGES CAN BE USED

    I HAVE MAYBE MAXED OUT MY APPS PAGE, BUT CAN SOMEONE TELL ME HOW MANY PAGES CAN BE USED, IS THE MAX 12. OR CONTINUOUS UNTIL THE MEMORY IS FILLED?

    There are a maximum of 11 home pages and 180 apps. The downside of adding apps beyond the 11 pages is that it isn't officially supported and can cause problems if too many are added. (Someone posting here complained that adding more than 500 caused the phone to choke.)
    Also, there isn't a good way to delete these apps either directly on the phone or in iTunes. You have to delete the visible apps first until the one you want appears on a page - not very practical.

  • How Many Times Can I Use The Same Serial Number For Adobe Creative Suite 4?

    I have design standard and was told I can use the same serial number on multiple computers. How many time can I use it? And say I install it on the maximum number of computers, but get a new computer, can I uninstall it on one of the old computers and use it on the new one? And can I use the programs on both computers simultaneously or do I have to use them one at a time?

    Fred Tech wrote:
    Broadly speaking, it depends on the type of license you have.
    Specifically, if you have a single license then officially, you should only install it once on one computer.
    Practically, (unless it has changed with CS4) you maybe able to install it on more then one computer, BUT can only run one instance of the software at a time. You can not run more then one instance of the software concurrently; i.e. you can't run Dreamweaver on Computer 1 and Photoshop on Computer 2. That would be two instances, and is not permitted.
    This is my understanding. I am happy to be corrected if I am wrong
    Fred
    Sorry Fred you are wrong.
    If you have a single license you can install it on as many computers as you like. you can only activate the suite on two computers at anyone time. Work and Home or as many of us do it Desktop and Laptop. You can not use the computers simultaneously. You only have 20 activation/deactivations so use them wisely. Student versions only have one activation. You can not break up the suite installs the suite is considered one application.

  • When I buy Logic 9 from the appstore. On how many Macs can i use it?

    When I buy Logic 9 from the appstore. On how many Macs can i use it? Can I install it twice with the same serial number?

    On all your personal Macs.

  • Offline updates mechanism: how many times can you use it before corrupting the image(wim)?

    Hi,
    As title mentions: "how many times can you use sccm 2012 offline updates for the wim file before corrupting the image(wim)"?
    J.
    Jan Hoedt

    In my experience the offline servicing feature is only OK and too unreliable for production.
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • With the online package of PS/LR, how many machines can I use this on?

    With the online package of PS/LR, how many machines can I use this on? Can I have it at work and home?

    2 Computer License http://forums.adobe.com/thread/977272

  • How many times can you use the serial number to download the cd

    help how many times can we use the serial number to download the cd photoshop elements 11

    Download Photoshop Elements products | 13, 12, 11, 10
    Mylenium

  • How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    If you purchased AppleCare + within 30 days of getting your iPhone 5 you are allowed 2 instances of breakage replacement with a $49 deductible. If you do not have AppleCare + accidental breakage is not covered under you warranty, you can do an out-of-warranty replacement for $229.

  • How many Ipods can you use with one Itunes account?

    How many iPods can you use/sync with one iTunes account?

    PT wrote:
    Macistotle wrote:
    Unless you have DRM still haunting your tunes ... Then you can only use those songs on 5 devices. Otherwise, connect as many as you like (as stated above).
    No, you can sync your DRM tracks to an unlimited number of iPods (but only authorized to play on 5 different computers/user accounts)
    Patrick
    So I can sync two iPods to my iTunes account and sync the same digital copy movies that come with some o' my DVDs to both ipods? Do movies make a difference really, DRM-Wise? Thanks in advance.

  • How many computers can i use with creative cloud?

    how many computers can i use with creative cloud?

    Two.
    From the Creative Cloud FAQ here http://www.adobe.com/products/creativecloud/faq.html under the section Purchasing and getting started:
    On how many computers can I install the software I download from Creative Cloud?
    You can install the desktop applications available in Creative Cloud on your primary computer and one backup computer, as long as they are not running at the same time. You will have access to both the Mac OS and Windows versions, so if you have a Mac at home and a PC at work, for instance, you can install your applications on both. See the product license agreements page for more information.

  • How many threads can be running at the same time

    Hi!!
    Dows anyone knows how many Threads can be running at the same time in the JVM.
    I'm making a multi thread client-server app and I would like to know how much simultneous connections the JVM support. I'm using one Thread per connection.

    Hi, thanks to all for your answers.
    I think that I made the wrong question, as you said: "that means the number of threads currently created".
    I'm worry about this because my application is already online (It's a mail server -SMTP and POP3 server using ORACLE for the users database- ) and some other user post in the "multi-tread forum" that almost any JVM can only have 700 threads created at the same time, and I've never heard or read anything about this.
    what you mean with the stack space (memory??)
    I'm using the JavaWebServer 2.0 and a servlet to start the main Thread.
    Again Thanks to all for the answers but I think that the schapel answer is the one that solve my doubt...

Maybe you are looking for