How can i find number of columns in a table ....... it's higer priority

hi
i wnat find the number of columns in a table.
is there any predefine fiunction. pls tell me

Thanks for correction!
I asked myself that question after posting previous post... started to search in Documentation but you were faster.
Thanks again!
Message was edited by:
Faust
Edit:
Dear thread users!
You have here (in my post in this thread - see above) good example for inappropriate post in one thread.
I posted to fast - I didn't realise am I sure what I wrote!
Consequence was that, after posting, I asked myself is it correct my statement about rights on SYS-objects, I started to search for answer, etc.
So what I want to say is: if you don't want to find yourself foolish, like I found myself, don't post before you are sure is it correct what you wrote!
Cheers!

Similar Messages

  • How can I find number of columns in a table using a query

    Hi
    I want to find the number of columns in a table using a query.
    Any help in this regard is much appreciated.
    Cheers

    Hi,
    This is the output i get when i executed ur query
    OWNER     OBJECT_NAME     OBJECT_TYPE
    SMLDBO     T2311_SURVEY_QUESTIONS     TABLE
    select OWNER,OBJECT_NAME,OBJECT_TYPE
    from all_objects
    where OBJECT_NAME = 'T2311_SURVEY_QUESTIONS';
    works Fine.
    But if i use the below query it returns : 0
    SELECT count(*) FROM user_tab_columns
    WHERE table_name =upper( 'T2311_SURVEY_QUESTIONS');
    What could be problem.
    The table exists + name of the table is correct + it resides in my schema itself.
    Any guess !!!

  • How can I find out when was a particular table last updated?

    How can I find out when was a particular table last updated? I need to find out the usage of this table - when was it last updated, etc. Thanks in advance. The version I am using is Oracle 9i.

    If you don't have any application level logging, and auditing is not enabled, there's not much hope.
    You could, if you have archive logs available, go trawling through archive logs via logminer, but that's likely to prove painful and not very fruitful, unless you're very meticulous and patient...
    -Mark

  • How can you find out whether anything in a table's been selected?

    How can you find out is there anything(a cell or a row) in a table's been selected???
    it's doesn't matter which cell or which row's been selected in a table, but just to know is there anything been selected
    I can't figure out the code to do that >.<
    is there anything to do with
    bookTable.getCellEditor()?

    How can you find out is there anything(a cell or a row) in a table's been selected???
    it's doesn't matter which cell or which row's been selected in a table, but just to know is there anything been selected
    I can't figure out the code to do that >.<
    is there anything to do with
    bookTable.getCellEditor()?

  • How can I get Number of Lines from internal table?

    Hello at all,
    i have in my Report a internal Table, which have many KUNNR.
    For example the internal Table:
    MANDT.......KUNNR......NAME.........FIRSTNAME........CITY
    ...040..........12345.........Owen............Michael........Liverpool
    ...040..........12345.........Owen............Michael........Liverpool
    ...040..........99999.......Johnson.......... Jeffrey........London
    ...040..........12345.........Owen............Michael........Liverpool
    ...040..........55555.......Hardley.......... Kingston.......Birmingham
    I want to know, how many same KUNNR are existing in the internal Table?
    In my example i need the result 3, because their is existing 3 times the Kunnr 12345 in the internal Table.
    Have anyone an idea, how can I resolve this problem?
    Edited by: Thomas Zloch on Jun 21, 2010 2:55 PM - one question mark at a time is sufficient

    Hi,
    1.Create two internal tables of same type and sort according to Kunnr then Delete the
    adjusent duplicates by comparing KUNNR
    2.Sort the table by KUNNR and use ON change of Concept in that Just increment the counter.
    I am writing the sample logic here.
    tables kna1.
    data: t_kna1 type table of kna1,
             w_kunnr type kna1-kunnr,
             counter type i," Holds No.of KUNNRs in the T_kna1
             t_kna2 type table of kna1.
    select * from kna1 into table kna1 up to 100 rows.
    t_kna2[] = t_kna1[].
    delete t_kna2 by kunnr.
    delete adjusent duplicates from t_kna2 by comparing kunnr."1st Method
    read table t_kna2 transporting no-fields.
    counter = sy-tfill."1st Method
    loop at t_kna1 into kna1."2nd Method
    at first.
    w_kunnr = kna1-kunnr .
    counter = 1.
    endat.
    if w_kunnr ne kna1-kunnr.
    counter = counter + 1.
    endif.
    endloop.
    Note : Here I used a sample table KNA1 in this there are no Duplicates of KUNNR .

  • How can I auto-number particular rows in a table?

    I have a table within a dynamic form.  In column 2 there is a drop-down where the user can pick a certain reagent.  I would like to set it up so that column 1 auto-populates with a series of numbers when certain reagents are chosen.  It needs to be an action/formula as the rows are added as needed to the form.
    For example:
    Reagent
    1
    Bottle
    2
    Bottle
    Can
    Paper
    3
    Bottle
    Can anyone help me out with a script or other way to accomplish this?
    Also, I'm relatively new to LiveCycle and although I have some limited scripting experience, I haven't applied it here yet - so I may need a little extra instruction on how to apply any script fixes...

    Hi,
    Turn on trace for the session, tkprof the trace file and review what indexes were used.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • How can I find the largest BLOB in a table and how big it is?

    Hi
    I have a massive table with 10 million rows storing images as BLOBS as well as some other data.
    Is there a way that I can find which is the largest BLOB in it and how big it is?
    Any help would be appreciated
    Flaz

    select max(dbms_lob.getlength(blob_column)) from table
    remove the max to get the length.

  • How can I find overset text in a InDesign table and locate the page?

    I am currently using CC but see the same issue in CS5 as well. If text within a table is overset or cannot be displayed, I can use search/replace for a term that I know is in an affected cell, however InDesign will find the first instance but will not automatically navigate to the page. Instead it remains on whatever page I happened to be on.

    For product specific questions you may do better in the specific product forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right to open the drop down list and scroll
    http://forums.adobe.com/community/indesign

  • How can I find out the name of the table by knowing the type_id #

    Is that possible though? I know the type_id from viewResults.jsp page, but, it doesn't say which table it belongs to though! I have to know the table name to copy over updated data.

    right, which is a column... so no, I don't think you can get the table name from that... Maybe from ResultSet itself... I'd have to look at the API docs to be sure, and I'm sure you can do that just as easily.
    But as I said, you have a ResultSet, that must've come from a query, which must've had the table name(s) in it...

  • How can I find  sync message  in Adapter Engine Table

    Hi,
    I see async message in Table(XI_AF_MSG , XI_AF_MSG_AUDIT)
    But don't see sync message.
    Where is sync message stored in Adapter Engine?
    Can anybody help me!!

    Hi,
    Refer this Doc..
    http://help.sap.com/bp_bpmv130/Documentation/Operation/TuningGuide.pdf
    regards,
    vasanth.

  • To find no of columns in a table

    Hi
    Please let me know how could i find number of columns in a table,ie how many fields the table has.
    Thank you
    Mary

    Let us have a guess. "Interview question" i.e. "How do you [insert standard, common task here] without using [insert standard solution here]"
    ..is there any other way to find without using user_tab_columns. Use the ALL_tab_columns view

  • How to find number of rows in a table

    i have one table ,it contains millions of record,how can i know number of rows in that table without using count(*),
    i tried in user_table ,for the column NUM_ROWS,but it is not showing number of rows,pls send me a solution for this.
    regards,
    singh

    Ok, that only was to show simply that max option
    might not an option to reduce execution time.Yes, but I/O variances have a tendency to really skew the observed elapsed execution time - making execution time alone a poor choice to determine what SQL will perform better than another.
    Both MAX(ROWNUM) and COUNT(*) results in the same amount of I/O - as both uses the exact same execution plan, I/O wise. In this example, a FTS.
    SQL> create table testtab nologging as select * from all_objects where rownum < 10001;
    Table created.
    -- warmed up the buffer cache with a couple of SELECTs against TESTAB in order
    -- to discard PIOs from the results
    SQL> set autotrace on
    SQL> select count(*) from testtab;
    COUNT(*)
    10000
    Execution Plan
    Plan hash value: 2656308840
    | Id | Operation | Name | Rows | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 35 (9)| 00:00:01 |
    | 1 | SORT AGGREGATE | | 1 | | |
    | 2 | TABLE ACCESS FULL| TESTTAB | 9262 | 35 (9)| 00:00:01 |
    Note
    - dynamic sampling used for this statement
    Statistics
    0 recursive calls
    0 db block gets
    131 consistent gets
    0 physical reads
    0 redo size
    223 bytes sent via SQL*Net to client
    238 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    SQL> select max(rownum) from testtab;
    MAX(ROWNUM)
    10000
    Execution Plan
    Plan hash value: 2387991791
    | Id | Operation | Name | Rows | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 35 (9)| 00:00:01 |
    | 1 | SORT AGGREGATE | | 1 | | |
    | 2 | COUNT | | | | |
    | 3 | TABLE ACCESS FULL| TESTTAB | 9262 | 35 (9)| 00:00:01 |
    Note
    - dynamic sampling used for this statement
    Statistics
    0 recursive calls
    0 db block gets
    131 consistent gets
    0 physical reads
    0 redo size
    225 bytes sent via SQL*Net to client
    238 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    So seeing that we have the exact same baseline for both queries, and that PIO does not influence the results, we time a 1000 executions of both.
    SQL> declare
    2 cnt number;
    3 begin
    4 for i in 1..1000
    5 loop
    6 select count(*) into cnt from testtab;
    7 end loop;
    8 end;
    9 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:03.19
    SQL>
    SQL> declare
    2 cnt number;
    3 begin
    4 for i in 1..1000
    5 loop
    6 select max(rownum) into cnt from testtab;
    7 end loop;
    8 end;
    9 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:15.87
    SQL>
    This shows that what makes the MAX() more expensive is just that - determining the MAX(). For each row, Oracle has to call its internal MAX() function with two values - the current max result and the new value. This function then returns the new max value. This overhead per row adds up to a significant overhead in execution time - making the MAX() approach 5x slower than the COUNT() approach.

  • How can we find print program for user defind Tr. Code.

    Hello Friends,
    If I know the user defined Script Name and Corresponding Tr. Code, How can I find Print Program. In TNAPR Table, I am getting SAP Standard forms and corresponding print programs?
    Thanks & Regards
    Sathish Kumar

    Hi Sathish,
    You can use the table TTXFP to get the name of print program by entering the Script name.
    Hope this helps.
    Regards,
    Saurabh

  • How can I find my serial number for Adobe Acrobat 11. I got a new iMac and I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    I used to use CS5 and I want to use the Acrobat version on my new iMac.
    How can I find my serial number for Adobe Acrobat 11.  I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    Hi Anthony Aduhene
    Please refer : Find your serial number quickly

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

Maybe you are looking for

  • Problem with character

    Hi Cyrillic letters don't show as cyrillic, show other symbols on the text of JLabal, JButton, JMenu..., but I can write cyrillic text to JTextField, JTextArea when app is working. Thanks, ~Hill

  • ITunes: Is there a setting to keep the volume level the same?

    Anyone know whether there is a way to adjust playback volume when making a mixed playlist? Very annoying to have to always turn the volume up and down when listening.

  • 3GS and ios 5

    I have iPhone 3GS and I'm looking forward to ios 5 released. I wonder if ios 5 make my iPhone slow or decrease battery life ? Thanks RIP STEVE JOBS

  • Currency field in PERFORM, -- SAP Script

    Hi, I am calling a zperform from SAP Script and sending two currency values as input and after doing subtraction , I want the result value from the Zperform. When I send 1,000,000.00 as input to PERFORM. I am getting a dump when I try to assign the i

  • Upgrading from Illustrator cc and photoshop cc to cs6

    My current plan gives me access to Illustrator CC and photoshop CC but my classes use Illustrator CS6 and Photoshop CS6? Is it possible to change to a student plan that has AI CS6 and Photoshop CS6?