How to list data types and column for a given using SQL table names

I remember that it is possible to use a select statement to list the column names and the data types of the databaase tables but I forgot how its done. Help, please.

You can select what you need from DBA_TAB_COLUMNS (or ALL_TAB_COLUMNS and USER_TAB_COLUMNS).

Tags: Database

Similar Questions

  • Data type of text is not displayed using SQL Server and ASP/VBScript

    Maybe someone help me with this because I used to use PHP/MySQL, but I use for this a Classic ASP/VBScript and MS SQL Server instance and I don't know that much. The scenario is I have an old site that was designed using html tables and I do a CSS/XHTML update on Visual design. As long as we are here, there are some pages that are dynamic and use a MS Access database and we thought it's a good time to upgrade from MS SQL Server (2005, to be exact). No time/money for bringing classic ASP VBScript in ASP .NET.

    Overall, the upgrade went fairly well, especially just to create a new connection to the DB in SQL Server in Dreamweaver after all the tables and data were migrated to SQL Server. Almost everything works as it should. A problem though.

    For some reason, the data of the data type 'text' in SQL Server is not appear (or sometimes appear). I even tried to recreate the recordsets and binds fresh data and the code is more or less identical to what we had before. Anyone know what's happening, or how I can get this data to show?

    I think that there is perhaps some simple and double quotes in the text data and which could be screwing things up. I was hoping there is only a simple function that I could apply the code, but as I said, I don't know.

    Thanks in advance for any help you can provide.

    -Bill

    captcashew wrote:
    > Maybe someone help me with this because I used to use PHP/MySQL, but for this one
    > instance I use Classic ASP/VBScript and MS SQL Server and I do not know
    > that much. The scenario is that I have an old site that was designed using html
    > tables and I do a CSS/XHTML update on Visual design. As long as we
    > are there, there are some pages that are dynamic and that use a MS Access
    > database and we thought it's a good time to upgrade from MS SQL Server
    > (2005, to be exact). No time/money to classic ASP VBScript in ASP.
    > .NET so.
    >
    > Overall, the upgrade went quite well, especially just needed a new
    > connecting to the DB in SQL Server in Dreamweaver after all tables and data
    > have been migrated to SQL Server. Almost everything works as it should. One of the problems
    > If.
    >
    > For some reason, the data of the data type 'text' in SQL Server is not
    > appear (or sometimes appear). I even tried to recreate the recordsets and
    > binds fresh data and the code is more or less identical to what we had
    > front. Anyone know what's happening, or how I can get this data to show?
    >
    > I think that maybe there are single and double quotes in the text
    > data and which could be screwing things up. I was hoping that there is only a simple
    > function I could apply the code, but as I said, I don't know.
    >
    > Thanks in advance for any help you can provide.

    Your text field should be the last of your select statement, as
    its not stored in the table with the other data, its stored elsewhere,
    as a binary object, should be treated differently. Its common
    the migration of the access problem.

    If you need more of 8000 characters stick with him, otherwise use
    varchar (8000) or nvarchar (4000) If you need (limited unicode characters
    4,000 cos of the double byte characters)

    Dooza
    --
    Display guidelines
    http://www.Adobe.com/support/forums/guidelines.html
    How to ask Smart Questions
    http://www.CatB.org/ESR/FAQs/smart-questions.html

  • How to load data from matrix report in the base using ODI table data

    Hello

    How to load matrix report data in the base table data using oracle Data Integrator?

    Description of the requirement:

    This is the data from matrix report:
    JOB                       DEPT10                DEPT20  
    ___________________________ _____________
    ANALYST                                           6000
    CLERK                   1300                     1900 
    Need to convert it to the format below:
    JOB                             Dept                        Salary
    _____________________________________________
    ANALYST                  DEPT10      
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        
    Thank you for your help in advance. Let me know if any other explanation is needed.

    Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.

    If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"

    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    VALUES
    (
    : job,.
    : deptsal,.
    : saledesc
    )

    That's why you use bind variables from source to load data into the target.

    Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.

    I hope this helps.

    BUT remember that this feature is out in Oracle 11 g.

  • Syntax of data type and name - still new for Oracle

    If I have an Employees table and that I needed the data type and the name of each column of the EMPLOYEES table


    What is the syntax?


    Is - CREATE AN EMPLOYEE in SIGHT?

    Thank you

    I use Oracle 10g express and Oracle SQL * MORE.

    Published by: user11915244 on 24 Sep, 2009 19:03

    call sqlplus

    SQL > DESC EMPLOYEE

  • Type of columns for (ROracle)

    Hello

    I use ROracle 1.1 - 11

    I have try to add rows of a data frame R in an Oracle Table.

    I use the following function:

    dbWriteTable (conn = con, schema = "MY_SCHEM" name = "TAB1"

    value = my.df

    row.names = FALSE

    overwrite = FALSE

    Append = TRUE)

    I get the error "ORA-01438: value larger than the precision specified for the column.

    In the help file for dbWriteTable I read that digital maps R to Oracle NUMBER if ora.number argument is TRUE or Oracle BINARY_DOUBLE so FALSE and R character cards for Oracle VARCHAR2 (4000)

    The Oracle Table I want to insert lines in, a column of type VARCHAR2 (32 bytes), VARCHAR2 (64 bytes), and NUMBER (6)

    I suspect this is the cause of my mistake

    How should I set my data frame R column types do not to have an own export/insert in the Oracle Tables?

    For more information, I can't change my Oracle Table structure.

    Thanks a lot for your help!

    It is likely that your data block contains a variable whose decimal values.  To help us identify the cause of the erorr, answer with the data types of R for the variables in your data frame R, the first rows of the data frame.

    For example, for data.frame df:

    R > sapply (df, data.class)

    R > head (df)

    Sherry

  • Please let me know how I can add a new column with a constraint not null, table already has data, without falling off the table... Please help me on this issue...

    Hello

    I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS

    IAM now add a new column "D" with forced not null

    Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D

    ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added

    Second... If I try to add the constraint not null, get an eoor as already conatained null values...

    (GOLD)

    In other words, if I put the query

    ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA

    So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table

    Please help me on this issue...

    Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.

  • How to display the list of temporary and free sites that we use?

    Adobe Web Host - Free Sites.

    How to display the list of temporary and free sites that we use?

    When you're connected creative cloud, we used to be able to view the temporary and lots of 5 free sites that we use hoe.

    Could not find a list on my creative cloud account or when the link to 'Manage' in the Muse.

    No mention of the free sites in the FAQ. Is there a change in policy? Are always included in the subscription of the free sites?

    - Adobe Muse help | Adobe Muse / Common Questions .

    When I publish in Adobe Muse CC, must I pay for hosting with Adobe?

    Adobe Muse CC allows you to publish your Web site temporary on the platform Adobe of accommodation free of charge for a trial period of 30 days. This gives you the ability to send a direct URL to your client for review. All sites with Adobe trial mode will include the field "businesscatalyst.com" in it. If you decide to take the live site by paying for monthly hosting, you can transfer your domain name and delete the subdomain businesscatalyst.com. Or you can export the HTML and host the final site with a host of your choice.

    //

    Yes, don't know why they took out of the cloud interface.

    But if you go to http://www.businesscatalyst.com/partnerportal and you connect with your ID cloud you will have access to all your cloud sites and many other features.

  • How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1-1007 D desktop PC

    How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1 - 1007 D desktop PC? THX.

    There were buttons No. brightness and contrast on the front of the monitor-no onscreen menu.

    On your desktop,.
    Right-click to select graphic properties->

    in display settings, click Advanced settings
    Here you go, you can do almost anything with the brightness

    Hope it helps

  • How to recover data images and videos

    How to recover data images and videos of empty Recycle Bin.

    Hello

    Have you looked in the trash?

    Recover files from the Recycle Bin - Vista
    http://Windows.Microsoft.com/en-us/Windows-Vista/recover-files-from-the-Recycle-Bin

    Recover files from the Recycle Bin - Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/recover-files-from-the-Recycle-Bin

    How to restore previous Versions of a file and the folder of Vista (Ultimate, Business and Enterprise)
    http://www.Vistax64.com/tutorials/122127-previous-versions-shadow-copy.html

    How to restore files and folders in Windows 7 with previous Versions
    http://www.SevenForums.com/tutorials/85679-previous-versions-restore-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    This could help you recover a file, or a previous version (all versions of Vista and Windows 7).
    http://www.ShadowExplorer.com/

    ShadowExplorer - recover lost files and folders (Vista and Windows 7)
    http://www.SevenForums.com/tutorials/132087-ShadowExplorer-recover-lost-files-folders.html

    ----------------------------------------------------------------------------------------------------------------------------

    Recuva - free - recovers files deleted from your Windows computer, Recycle Bin,
    map of the camera digital or MP3 player. And it's free!
    http://www.Piriform.com/Recuva

    Recuva - Forums - help here
    http://Forum.Piriform.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.

  • My Belarc Advisor tells me I need to update Adobe Reader reader 11.0.8.4 and yet when I try to download Reader it sends me to an older version.  How do I get this and I need?  I use Chrome on a Vista laptop.

    My Belarc Advisor tells me I need to update Adobe Reader reader 11.0.8.4 and yet when I try to download Reader it sends me to an older version.  How do I get this and I need?  I use Chrome on a Vista laptop.

    Vista is not supported for Adobe Reader 11 and newer versions.

  • How to switch web browser and which one should I use

    How to switch web browser and which one should I use thanks

    FireFox.
    http://www.Mozilla.org/en-us/Firefox/new/

  • I have the creative cloud installed on my computer with Photoshop, Illustrator and InDesign for when I used my free trials. I now have a job that allows me to have on my computer for free, however, I have a problem switching to work one

    I have the creative cloud installed on my computer with Photoshop, Illustrator and InDesign for when I used my free trials. I now have a job that allows me to have on my computer for free, however, I have a problem switching on behalf of employment. I've switched to creative cloud and now it of installation and update but due to lack of care and allow me to do something else. Help, please.

    log out and then back to your client application using the adobe for your subscription in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

  • I am trying to download Adobe Premiere Pro cc that I download the free trial version of double click on the installer of creative cloud she gets up and wants that connect you using a user name and password? I never remember to do all an account, I had to

    Hey its jake here

    I am trying to download Adobe Premiere Pro cc that I download the free trial version of double click on the installer of creative cloud she gets up and wants that connect you using a user name and password? I don't remember all account, I had to do when I connected to Adobe was the first and last name.

    you need an adobe (valid email) ID / pass to download the application of office cc, https://creative.adobe.com/products/creative-cloud

    don't forget either.

    When installing on a mac, you will be prompted for the password of your mac.

  • How to transfer data from the column of CHAR type to column?

    I have a column with data type varchar2 contains data in format: dd/mm/yyyy hh24:mm:ss for example 24/11/2013-08:15:22

    I want to execute an update statement in order to put these data in a date column how?

    Note: I use Oracle DB 10 g

    Update

    Set = to_date (, "dd/mm/yyyy hh24:mi:ss");

Maybe you are looking for

  • iCloud only appear photo stream is not on iPhone or iPad

    I have all the photo options enabled in the iCloud settings and in the photo app settings. I turned them off and on again as well. However, no photo don't stream photos or photo album or camera application. what Miss me?

  • I download the video from the cloud, and he just Gray with no inside pictures.

    I see media in the sidebar to iMovie on my iPad pro. When I select a video clip, it must first download it. before it downloads I can see what is in the clip. After downloading, it goes gray. also, nothing ever appears in the section overview top of

  • Strange files in the users profile

    Recently I discovered a few records of stramge and I'm not sure of their source. They find themselves in the users > Appdata > local and LocalLow folders The files are named: EmieBrowserModeList EmieSiteList EmieUserList These files are all empty. Do

  • "A" floppy drive internal on pavilion a6838f

    I installed a floppy drive internal on my pavilion a6838f. Floppy drive has worked UNTIL I installed all updates from update driver HP for my model on the HP site. Will not work little matter what I try! BIOS will not accept the diskette as installed

  • Link to the lines using other columns in the same line

    Link to all rows based on values:All - I have a requirement like this:My Table has 2 columns - Col1, Col2Select * from tab1;Col1, Col2A1 C1A1 C2A2 C2C3 A2C3 A3C4 A4A5 C2Now, I have to create a link like this (in the example above, A1, A2, A3, and A5