How do i know the number of columns in a table??

dont think the question is too odd for me to post here..
i am a new bee to oracle..
so i just to know is there some way by which i can know the the total number of columns in a table..
Thnks in advance for any solutions given

did you try it whaterver is suggested?
SQL> desc dept;
Name                                                                          
DEPTNO                                                                        
DNAME                                                                         
LOC                                                                           
SQL> SELECT c.TABLE_NAME,c.COLUMN_NAME,c.COLUMN_ID FROM user_tab_columns c
  2  WHERE table_name='DEPT';
TABLE_NAME                     COLUMN_NAME                     COLUMN_ID
DEPT                           DEPTNO                                  1
DEPT                           DNAME                                   2
DEPT                           LOC                                     3
SQL> SELECT COUNT(c.COLUMN_NAME) FROM user_tab_columns c
  2  WHERE table_name='DEPT';
COUNT(C.COLUMN_NAME)
                   3

Similar Messages

  • How do I set the number of columns for JTextPane

    I only found a method setSize() of JTextPane class. How can I set the number of columns in a JTextPane? Each column can be written one letter.
    Thanks.

    You're not going to use FontMetrics to change the width of the characters; you're going to use it figure out how wide a single character is. Then multiply by the number of characters you want to have in a line, and presto! You know how wide to make your JTextPane.
    Unless I've misunderstood your problem, of course.

  • How do i change the number of columns within a text box?  I need to go from three columns to one.

    How do I change the number of columns within a text box?  I need to go from 3 columns to 1.  The insert column is highlighted and column break does not work for this.

    Pages '09 does not seem to allow layout breaks in Textboxes.
    Pages 5.2 has the same limitation.
    Use multiple linked Textboxes in Pages '09 to get the layout you want or create your layout in a Word Processing template in the document layer.
    Peter

  • How can i know the number of lines in field-symbol internal table

    how can i know the number of lines in field-symbol internal table

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How can I edit the number of columns in a header in Pages?

    I'm trying to set up headers in an APA style document and the middle field in the header is cutting off my copy. How can I make the header only two columns? Or is there a way to hide the middle one so it doesn't cut anything off?
    Help please!!!

    As far as I know, the three header columns in Pages v5+ are not changeable. If you had Pages installed prior to version 5, it was moved into /Applications/iWork, and is your best bet for Pages productivity.

  • How can I know the number of ejb instances

    Hi all,
    We need to know how can we get the number of ejb instances (entity and session) while the application is running.
    We have a memory leak, so we need to know the amount opf memory used.
    Please, it´s quite urgent, can anybody help us? It seems like an Oracle 9ias 903 bug.
    Thanks

    I'm not sure if this will help you, but the "Spy" application that comes with OC4J stand-alone may help. I suggest you search this forum's archives for the words "Spy" and "AggreSpy".
    Good Luck,
    Avi.

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • How can I know the number of concurrent users

    Dears,
    We have a sizing document from one of our vendors which is asking for the "Peak number of concurrent users in E-mail".
    How can we estimate that? is it something like 5% of Total # of Users?

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How can I add the number of columns/row starting with the build in "Text Report" example in the LabVIEW

    Hi All,
    I am wondering how can I add the numbers of row and column from the existing build-in "text report"
    VI ? If possible, would you mind showing me step-by-step because I am a new user and I am not familiar with the labview software.
    Thanks

    Hi,
    Easy text Report is for saving to a file. Do you mean you just want to add the totals of two arrays and write that? In that case I would just append the totals before writing to file.
    Jeff | LabVIEW Software Engineer

  • Count the No.of Columns in a Table

    Hi,Is it possible to write a Select statement
    that returns back the number of columns in a table?
    Or is there any other way on knowing the number of
    columns in a table?

    Hi
    Subtle point:
    USER_TAB_COLUMNS returns information relating only to tables owned by the current user.
    ALL_TAB_COLUMNS includes all the tables which the current user can select from, whether owned by the current user or not.
    DBA_TAB_COLUMNS, if the user has access to it, gives information about all tables in all schemas, regardless of whether the current user can select from them or not.
    ...so USER_TAB_COLUMNS may or may not be the best view to use.
    regards
    Andrew
    UK

  • How we know the Number of users logged into stratus?

    Hai,
    How can we  know the number of users logged into stratus? If we knows only,in our project we can check the users are valid/authenticated.can we check that?
    Advanced Thanx

    Stratus is adobe service which provides you with p2p id or say all your
    application's users a p2p id. Adobe doesn't have any admin section where you
    can manage/see all connected p2p users in your application.
    This you have to implement at your end in your application code i.e.
    authentication,validation and user counter.
    Thanks,
    Vivek.

  • How to know the number of times end users search on iStore

    How can we know the number of times end users search on iStore

    I am not sure how can you do that with Oracle but I am doing that with Google Analytics (Site Search Settings).
    Thanks
    Shazi
    Edited by: 903823 on Nov 30, 2012 7:59 AM
    Edited by: 903823 on Nov 30, 2012 7:59 AM

  • How do I determine the number of clicks on a component contributed hist?

    Hi,
    How do I know the number of clicks made on a Publisher's component contributed ?
    How can I order Publisher's component contributes to the number of clicks?
    Luca

    bae12138 wrote:
    Hi,
    How do I know the number of clicks made on a Publisher's component contributed ?
    How can I order Publisher's component contributes to the number of clicks?
    LucaIf you are asking how many users click on a content item, you can only get that through Analytics (if I'm not mistaken). I don't think there would be any reason for Publisher to capture that in it's database.
    Could you clarify the second question? Are you trying to order Publisher content items based on how many people have clicked on them? if so, you should be able to do that with the Analytics API (if I'm not mistaken)

  • Validating the number of columns

    Hi Guyz,
    how can i validate the number of columns in the custom table with number of columns in flat file.. at the moment ive uploaded all the data in flat file to internal table.
    plz advise..
    Thanks

    Try looking in table DD03L to list the field names within your specific table

  • 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 !!!

Maybe you are looking for

  • Mail crashes after Update to 10.5.7

    Every time I try to print in word or Mail it crashes. And this began immediately after I restarted after the update. Help please???

  • Using Time Capsule as a second, separate wifi network?

    I hope someone can solve this little riddle that I've been mucking around with for a couple of days now. I have an existing wireless network, connected to the internet via an old Belkin wireless modem/router.  I have an iMac and various other devices

  • WPC - highlighting the link of the current page in the link list

    Hi, is there any way to highlight a link in my linklist if it's the link to the page i am currently visiting? That would make it possible for me to customize the link list form and change it into some kind of "tab"-list form where the current tab is

  • How to create non valuated material

    I need to create non valuated material Please help me to create the same. Thanks Rupesh

  • No Window in Widget Browser or Adobe Help on Mac, solved

    I had trouble installing Air, got that solved, then found Widget Browser and Adobe Help would seem to start, but never show a window, and they'd "quit unexpectedly" when quitting. Noted that, when logging into a different account, the applications wo