How do i find out  what is the data type of a column of a Table in oracle or SQL?

a) What if i want to find out the  Datatype of a specific column in the Table.
b) How do i find the Column Datatypes?
Can anyone please help me. I am new to oracle and Trying to Learn some stuff

Hi,
How about doing
SQL> desc <table_name>
SQL> desc emp
Name                                      Null?    Type
EMPNO                                     NOT NULL NUMBER(4)
ENAME                                              VARCHAR2(10)
JOB                                                VARCHAR2(9)
MGR                                                NUMBER(4)
HIREDATE                                           DATE
SAL                                                NUMBER(7,2)
COMM                                               NUMBER(7,2)
DEPTNO                                             NUMBER(2)

Similar Messages

  • HT201359 how can i find out what all the charges on my checking account are for?

    how can i find out what all the charges on my checking account are for?

    If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases - the most recent purchase is above the list. I'm not sure if that shows auto-renewing subscriptions (I don't have any so I can't check).
    If you can't find the charges and you haven't added or changed your card details on your account (when you do then a small temporary store holding charge may be applied to check that the details are correct and valid, which should disappear within a few days) then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to retrieve the data type of a column of a table?

    Hi,
    I want to retrieve the data type of a column of a table. At the moment I am querying "OCI_ATTR_DATA_TYPE" attribute but it is returning SQLT_CHR for both varchar2 and nvarchar2 data type columns. I need to distinguish between these two data types columns separately. Is there any API through which I could get the exact data type of a column i.e. "nvarchar2"?
    Thanks in advance.
    Hashim

    Hi,
    This is the Oracle C++ Call Interface (OCCI) forum - I'm not sure if you are using OCCI or OCI (Oracle Call Interface - the C interface) since you reference "OCI_ATTR_DATA_TYPE" which is more of an OCI focus than OCCI.
    In any case, you might take a look at "OCI_ATTR_CHARSET_FORM" which takes the following values:
    #define SQLCS_IMPLICIT 1     /* for CHAR, VARCHAR2, CLOB w/o a specified set */
    #define SQLCS_NCHAR    2                  /* for NCHAR, NCHAR VARYING, NCLOB */So, if you have a datatype of SQLT_CHR and OCI_ATTR_CHARSET_FORM is SQLCS_IMPLICIT then you have a varchar2 if it is SQLCS_NCHAR then you have an nvarchar2.
    If you are using OCCI and not OCI then take a look at MetaData::ATTR_DATA_TYPE and MetaData::ATTR_CHARSET_FORM which expose OCI_ATTR_DATA_TYPE and OCI_ATTR_CHARSET_FORM respectively.
    Perhaps that will get you what you want.
    Regards,
    Mark

  • My storage, it says I have 44.58GB of "other storage"? How can I find out what is the "other" storage and/or delete it?

    HELP! My storage, it says I have 44.58GB of "other" storage. How can I find out what this "other" storage is and/or delete it? I have no space available to update or download the software for my personal cloud.

    About “Other”:
    http://support.apple.com/en-us/HT202867
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
       http://support.apple.com/kb/PH13806
    3. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    6.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files you don’t want to keep.
       Be careful. Delete only the files that can be safely  deleted.

  • How do I find out what is the current data rate on my wifi card?

    I have a macbook pro running OSX 10.8.2. When I go to system profiler I see that the card is in 802.11n mode, but how do I find out the current rate? There is a 'Transmit Rate' parameter but there is no unit next to it.

    The data rate depends on if it is using the 2.4 GHz band or the 5 GHz band, both are possible with n-protocol unless you have limited your wireless to only one band.  The data rate in 5 GHz is double that in 2.4 GHz.  Also, you have to know what the protocol of the network is, the AirPort card can only transmit at the rate of the network, so if you are on a g-protocol router, that is the fastest rate you can see.
    And then interference, attenuation, etc. will drop that rate.

  • How do I find out what is the right RAM for my macbook?

    Hey I've been trying to upgrade the Ram for my Macbook but many people said to make sure I get the right one.
    Can anyone tell me how\what to do to get the right one?
    How do I know what is the right one and what's not?
    I don't wana make mistake, cuz it is expensive.
    thankz

    hey thank you very much for your help!!
    At first I didn't get it but now I do
    wo00 hoo0!
    am so happy right now!!!
    n_n

  • Why is my internal memory so full? How can I find out what is the "other" that is taking up so much space?

    I'm not very tech-savvy. My iPhone is backed up on my computer and all my photos are in my computer. I'm going to send it away to have the screen fixed and the people from AppleCare recommended to back it up just in case. So, I am going to backup my computer for the first time since I bought it in mid 2011. I go see how much space I need and I see that I only have 15 GB of memory space left and this huge space being used up by "Other". I don't know if its because I updated it to Mavericks. How can I see what that is? Also, I've never downloaded movies so I don't know why that is also there. Please help ASAP!
    I added a photo.

    "Other" is everything that isn't in one of the other categories. For instance, it includes all your user documents that are not movie, audio, or photo files.
    Regardless of that, you need to use an external drive at least large enough to backup your entire user folder (the one with a House icon). Better is to get one at least as large as your built-in drive & use something like Carbon Copy Cloner or SuperDuper! to clone the whole built-in drive to it.

  • How can i find out what cursor the user has selected on an xy graph?

    I have an XY graph in which while the program runs it will be creating cursors in certain locations on the plot. I want to give information about this cursor when selected upon, I THOUGT that active cursor does this.. but appreently not.. it seems to jsut keep spitting out 0, any ideas?

    > I have an XY graph in which while the program runs it will be creating
    > cursors in certain locations on the plot. I want to give information
    > about this cursor when selected upon, I THOUGT that active cursor does
    > this.. but appreently not.. it seems to jsut keep spitting out 0, any
    > ideas?
    You might look at the Selected Cursors property. It indicates which
    cursors will be acted upon by the movement palette. It should be
    equivalent to the small LED buttons on the cursor palette.
    Greg McKaskle

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • I do not know my apple administrator username and password? How do I find out what it is? I am trying to download IBM Notes and Domino onto my MacBook Pro and I cannot download the software without verifying my apple administrator username/password

    I do not know my apple administrator username and password. How do I find out what it is? I am trying to download IBM Notes and Domino onto my MacBook Pro and I cannot download the software without verifying my apple administrator username and password.

    iOS is only for mobile devices, so:
    Resetting or changing a password:
    For Snow Leopard or earlier:  http://support.apple.com/kb/HT1274
    For Lion or later:  http://support.apple.com/kb/HT6022
    For Mavericks users:
    http://www.macworld.co.uk/how-to/mac-software/how-change-admin-password-mac-3535 328/
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email
    If it's running Mac OS X 10.6.8 or earlier, insert a Mac OS X install DVD, restart with the Option key held down, click on it, and use the Reset Password utility.
    If it's running Mac OS X 10.7 or newer, restart with the Command and R keys held down, open the Terminal, and use the resetpassword command:
    https://discussions.apple.com/docs/DOC-4101

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • How do I find out what the resolution of a video file is in snow leopard

    I have a video file and am wandering how do I find out what the resolution of the video is?

    sometimes right click on the file, and getting info may show the resolution.

  • I have a new 16g nano and I have only added about 600 songs and I only have less than a gig left of space.  It says I have used over 9G of other.  I have no movies, pictures, tv shows or anything else on it.  How do I find out what the "other" is?

    I have a new 16g nano.  I have only added about 600 songs so far.  It is telling me that I 4.47G of songs and 9.92G of other and only 3.297MB of space left.  I have no tvshows, no movies, no pictures on the Ipod.  How do I find out what the "other" is and get rid of it? 

    You most likely have some corrupted files in other. Restore it and resync.

Maybe you are looking for