HI I WANT TO USE THREE TABLES AND I WANT THIS OUTPUT THE MESSAGE BELOW...   PLEASE HELP ME OUT

USER_CONSTRAINT-> > CONSTRAINT_TYPE TABLE_NAME, CONSTRAINT_NAME, WANT

USER_TAB_COLUMNS-> > WANT DATA_TYPE

USER_CONS_COLUMNS-> > want TO COLUMN_NAME, POSITION

AND OUT WILL BE LIKE THIS

EXIT;

TABLE_NAME COLUMN_NAME, CONSTRAINT_NAME, CONSTRAINT_TYPE POSITION DATA_TYPE

EMP                  EMPNO                   PK_EMP                                     P                                                        1                               NUMBER

EMP                  ENAME                                                                                                                                                               VARCHAR2

UP TO MIN...

Just to warm up

Select uc.table_name, cc.column_name, uc.constraint_name, uc.constraint_type, cc.position, tc.data_type

from user_constraints uc

inner join

user_cons_columns cc

On cc.owner = uc.owner

and cc.table_name = uc.table_name

and cc.constraint_name = uc.constraint_name

inner join

USER_TAB_COLUMNS tc

On uc.table_name = tc.table_name

and cc.column_name = tc.column_name

where uc.table_name = 'EMP '.

TABLE_NAME COLUMN_NAME Constraint_name Constraint_type POSITION DATA_TYPE
EMP EMPNO SYS_C0019683833 C - NUMBER
EMP EMPNO SYS_C0019683834 P 1 NUMBER
EMP MGR SYS_C0019683835 R 1 NUMBER
EMP DEPTNO SYS_C0019683836 R 1 NUMBER

Concerning

Etbin

Tags: Database

Similar Questions

  • I use Windows XP and on startup, I get the message insert the disc from center of solutions?

    I use Windows XP and on startup, I get the message insert the disc from center of solutions?

    You have one something or other HP connected to the PC? Check the CD-ROM that
    came with it. Otherwise, contact HP support.

  • got the computer, needs update and my name instead of the former owner, please help

    Purchased from personal, but he left all her things, but has not received the disc to reinstall or updaye, then, how can I do this without crashing the computer?

    Thank you.

    Buy a used computer, it's always a good idea to reinstall Windows to restore to condition buy and go from there.  It eliminates any malware content and possible questionable.   In the last semi computers OEM (Dell, Hp, Acer, etc.), there is a recovery partition on the hard drive that can restore your machine bought as a condition.  The manufacturer saves a dollar or two for the supply of the discs.  Usually it's hit a key or combination of keys when the first splash screen appears when you start the computer.  Go to the manufacturer's website, click on the link "Support" and search for "Download" and download the manual for your computer.  It must contain instructions on how to restore it.

    If you decide to keep your current configuration, but to change the name of the owner, please see the following article:
    "How to change name and company information after you install Windows XP"
      <>http://support.Microsoft.com/kb/310441 >

    HTH,
    JW

  • using plsql table and ref cursor in oracle's 10 g

    Hi all
    Can someone give me an example of a scenario where we need to create a form manually based on a stored database procedure.
    And in this process, I created a pl/sql table and a Ref cursor at the database level.

    CREATE OR REPLACE PACKAGE SCOTT. TYPE BONUS_PKG IS bonus_rec
    IS (RECORD
    EmpNo bonus_EMP.empno%TYPE,
    Ename bonus_EMP.ename%TYPE,
    employment bonus_EMP.job%TYPE,
    SAL bonus_EMP.sal%TYPE,
    Comm bonus_EMP.comm%TYPE);

    TYPE b_cursor IS REF CURSOR RETURN bonus_rec;
    TYPE bontab IS TABLE OF bonus_rec INDEX DIRECTORY.

    PROCEDURE bonus_refcur (bonus_data IN OUT b_cursor);
    PROCEDURE bonus_query (bonus_data IN OUT bontab);
    END bonus_pkg;


    CREATE OR REPLACE PACKAGE BODY SCOTT. BONUS_PKG IS
    PROCEDURE bonus_query (bonus_data IN OUT bontab) IS
    II NUMBER;
    CURSOR bonselect IS
    SELECT empno, ename, job, sal, comm bonus_EMP ORDER BY empno;
    BEGIN
    OPEN bonselect.
    II: = 1;
    LOOP
    Look FOR bonselect IN
    .EmpNo bonus_data (ii),
    .ename bonus_data (ii),
    .job bonus_data (ii),
    .Sal bonus_data (ii),
    .comm bonus_data (ii);
    EXIT WHEN bonselect % NOTFOUND;
    II: = ii + 1;
    END LOOP;
    END bonus_query;

    PROCEDURE bonus_refcur (bonus_data IN OUT b_cursor) IS
    BEGIN
    Bonus_data OPEN to SELECT empno, ename, job, sal, comm bonus_EMP ORDER BY empno;
    END bonus_refcur;

    END bonus_pkg;

    I want to fill in the data in the forms manually is not using Forms data block Wizard and by program.

    Please answer...

    Can someone give me an example of a scenario where we need to create a form manually based on a stored database procedure.

    In general, you will use a block of proceedings based when you have a collection of data from several tables presented in a form and your username must be able to update the information displayed.

    In your sample code, looks like you are using Oracle Support document "Melting a block on a Stored Procedure - examples of Code [ID 66887.1]". If this is the case, continue to follow the document - it guides you through all the steps. There is no need to manually configure things that the data block Wizard will work for you!

    I want to fill in the data in the forms manually is not using Forms data block Wizard and by program.

    Why? Let the wizard block configuration data of your block based on a procedure for you. There is no need to manually browse the data! I did what you're trying, and it's more work needed. Leave forms to do the work for you. :)

    If you absolutely have to do things manually, I recommend that you use the PROCEDURE bonus_query (bonus_data IN OUT bontab) instead of bonus_refcur (bonus_data IN OUT b_cursor) . Then, in your code create a variable of type BONTAB, and then call the bonus_query procedure. Then, it's a simple case of a loop in the table of records returned by the bonus_query procedure. For example:

    DECLARE
       t_bonus    bonus_pkb.bontab;
    BEGIN
       bonus_pkg.bonus_query(t_bonus);
    
       FOR i in 1 .. t_bonus.count LOOP
          :YOUR_BLOCK.EMPLOYEE_NUMBER := t_bonus(i).empno;
          :YOUR_BLOCK.EMPLOYEE_NAME := t_bonus(i).ename;
          :YOUR_BLOCK.EMPLOYEE_JOB := t_bonus(i).job;
          :YOUR_BLOCK.EMPLOYEE_SALARY := t_bonus(i).sal;
          :YOUR_BLOCK.EMPLOYEE_COMMISSION := t_bonus(i).comm;
       END LOOP;
    END;
    

    This code example shows the basics, but as is the sample code - you will need to adapt to your situation.

    Also, I highly recommend that you look at the article inol listed. It is a very thorough debate on the REF CURSOR. If you have set up using a procedure based on the data source - it is more effective to spend the record table to your form that it must pass a ref cursor Using a ref cursor, you might as well just using a standard called cursor and loops on your named cursor. The effect is the same (a line returned at the same time creating lots of network traffic). Using the table of records is more efficient because the data set is returned if the network traffic is reduced.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • Cannot open the lightroom catalog called "Lightroom Catalog" because it's too new to be used by this version of Lightroom.  You want to select a different catalog?  This is the message when I first click on LR and I have no idea what do to m

    Cannot open the lightroom catalog called "Lightroom Catalog" because it's too new to be used by this version of Lightroom.  You want to select a different catalog?  This is the message when I first click on LR and I have no idea

    Hi steves

    This means that you try to open a catalog from Lightroom CC/6 in an earlier version of Lightroom

    What version of Lightroom you have installed?

    Concerning

    Assani

  • Windows Mail error message: "some of the files could not be found and could not be attached to the message." You want to send the message anyway? »

    original title: end this message appears "some of the files could not be found and he could not be attached to the message." You want to send the message anyway? "I am running Windows Vista Home Basic Edition
    Hello
    I'm so frustrated, this problem has arisen at a very bad time!

    I started to use Windows Mail a few months ago and have had no problems so far, since Thursday night, every time that I attach a file to an e-mail message when I click on send this message 'some files was not found and could not be attached to the message. You want to send the message anyway? "I am running Windows Vista Home Basic Edition.

    Thank you

    Hello

    Method 1:
    You can perform the steps of troubleshooting from the link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Mail

    Method 2:
    You can check if the default e-mail program is selected, follow the steps to do this:
    a. go to: Control Panel and go to default programs. Select Configure programs and Computer Defaults b. Select continues if the permissions window will appear
    c. left, double-click Custom, under Choose a default e-mail program, select Windows Mail.
    d. click Ok and close.

    Method 3:
    If none of the above steps are useful, then try to perform the system restore to the date when it was working fine.
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    NOTE: System Restore does not affect personal files, such as e-mail, documents, or photos, so it cannot help you restore a deleted file. If you have backups of your files, you can restore files from a backup.

    Method 4:
    If the file you are trying to download is opened, then it will not download, you can close the file completely and then try to download.

     

  • My habit. Doesnot INF react exactly the same way on Windows 7, the way that he used to XP/Vista. I used 'Usbser.sys' and wrote my own. The device INF. Please suggestions

    Hi all

    (Please HELP ME OUT!-I have my camera works on Win 7 the exact way only on Xp/Vista)

    I have a camera (with USB port) where in I used the USBSER. SYS and made a. INF file (custom), in order to make my camera work on XP & VISTA. Everything's fine (once the usb is connected to the computer, h/s configuration Manager installs the driver & recognizes my camera and adds its under the MODEM-) find the set. Content of an INF of mine below...

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

    ; INF file for the installation of the devices USB compatible serial port emulation
    [Version]
    DriverVer=08/03/2005,5.1.2600.2180
    LayoutFile = Layout.inf

    ; use the signature for all versions of windows
    Signature = "$$XXXXXX".

    ; Use the following defined system device installation class
    Class = Modem
    ClassGuid = {XXXXXXX}
    Condition = % XXXX

    [Manufacturer]
    XXXXXXX % = XXXXXX

    [DestinationDirs]
    FakeModemCopyFileSection = 12
    DefaultDestDir = 12

    ; Models section
    [XXXXX]
    %USB_Enabled%=XXXXX,USB\VID_0e1e&PID_0501

    ; DDInstall section
    [XXXX NT]
    include = mdmcpq.inf
    CopyFiles = FakeModemCopyFileSection
    AddReg is USB, XXXX.resp, XXXX. AddReg

    [XXXX. NT. Services]
    include = mdmcpq.inf
    AddService = usbser, 0x00000000, LowerFilter_Service_Inst

    [XXXX. NT. HW]
    include = mdmcpq.inf
    AddReg = LowerFilterAddReg

    [LowerFilterAddReg]
    HKR, 'LowerFilters', 0x00010000, "usbser.

    [LowerFilter_Service_Inst]
    DisplayName = % USBFilterString %
    ServiceType = 1
    StartType = 3
    ErrorControl = 0
    ServiceBinary=%12%\usbser.sys

    [FakeModemCopyFileSection]
    Usbser.sys, 0x20

    [USB]
    HKR, FriendlyDriver, Unimodem.vxd
    HKR, DevLoader, * vcomm
    HKR, ConfigDialog, serialui.dll
    COM7 HKR, AttachedTo,
    HKR, EnumPropPages, "serialui.dll, EnumPropPages"
    HKR, DeviceType, 0, 01;
    HKR, PortSubClass, 1, 02

    [XXXXX. AddReg]
    HKR, properties, 1, 00,00,00,00 00,00,00,00 00,00,00,00, 00,00,00,00, 00,00,00,00, 00,00,00,00, 00, c2, 01, 00, 00, c2, 01, 00

    [Strings]
    XXXXX = "XXXX XXXX XXXX.
    USB_Enabled = "XXXX USB Serial Emulation."
    USBFilterString = "XXXX USB serial emulation"

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

    The QUESTION is now,

    (1) I want to know if new, something must be done to it to make sure that my camera works even on Win 7 (like the addition of new sections for windows7 in.) INF, etc etc), also something to see w.r.t. 32bits & 64bits.

    (2) in addition, when I tested my camera on Windows 7 (for the 1st time) I have observed that the system has not provided by h/w (as in XP) configuration manager, instead it popup a warning ("There is a threat to your device by 3rd party" - not exact). I have to go to Device Manager and update driver manually... Instead, I would like to than END USER to have the Manager h/w config (of the operating system) of the pop up/initiated the trial...

    Thanks in advance...

    SAN.

    Hello

    Check in safe mode:

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    If not try to clean boot and check:

    http://support.Microsoft.com/kb/929135

    It will be useful.

  • Table and the loop problems (please help)

    Im making a site for a project where I have to include a table and a loop.

    For this section, I put in a "contact us / Q and A" page where the user can enter a name, email, and question.
    This information is sent to a table and then following image shows the form of the table information in the dynamic text boxes.

    I've included a loop to check that each part of the table contains data (name, email and the issue).
    Then I have an If Else, which clears the form either if a section has been missed, OR if the form was completely correctly it directs the user to the frame following where as I said above the details appear in dynamic text boxes.

    The problem im having is the loop to check For the table that's a waste. Someone can please help me out here and get the loop to verify that all fields have been filled.

    Here is my code for the initial frame

    You must update the values in your table at the time you press the submit button. Code follows

    There is a second example to check the strings (it's a little complicated, but it's a useful trick if you can understand). This does not leave the Send button work unless all fields have something in them

  • I use windows XP and every time I adjust the time to have 5 Midnights before, it re-adapt to previous settings

    I use windows XP and every time I adjust the time to have 5 Midnights before, it re-adapt to previous settings

    Try the following steps.

    The Notification area of your taskbar Windows, right click...

    In the menu... Choose... Adjust the Date and time...

    On the time tab Internet... Uncheck the...
    Automatically synchronize with an internet time server / apply / OK...

  • I use microsoft vista and I can not find my webcam to any help

    I use Microsoft vista and I can not find my webcam to any help

    I use Microsoft vista and I can not find my webcam to any help

    Huh?

    Related topics

  • I use Google chrome and shock wave crashes all the time

    I use Google chrome and shock wave crashes all the time

    Google Chrome and Adobe Shockwave aren't Microsoft products.

    Without a message from the error 'event', he probably does not have an answer that remove and re-install the latest versions of each.

  • I'm currently developing apps on my creative cloud. My account has two subscriptions and I am trying to use one of them, but after that download the message of "no subscription found" apps will appear when you try to license. How can I access the apps? I

    I'm currently developing apps on my creative cloud. My account has two subscriptions and I am trying to use one of them, but after that download the message of "no subscription found" apps will appear when you try to license. How can I access the apps? I use a Mac

    Hello

    Please see connect and disconnect activate Cloud Creative applications

    Advanced solutions for connection with Adobe Creative Cloud and Creative Suite applications errors

    Concerning

  • Please help me out here. I want to know if the story of adobe that I use is free or not?

    Please help me out here. I want to know if the story of adobe that I use is free or not?

    In the free version of history, once you log in, you'll notice an "Update now" link in the upper right demand.

  • I am signed up to the CC, when I look in my apps old versions of the bridge appears, this means I use double space and can empty one in the trash?

    I am signed up to the CC, when I look in my apps old versions of the bridge appears, this means I use double space and can empty one in the trash?

    Hi louisew,

    If you have installed the latest version of creative cloud Applications, then Yes, we can go ahead and uninstall the previous version of computer Applications.

    Kind regards

    Tanuj

  • I use a mac and would like to buy the package of Lightroom.  I had the trial and it was fine.  I was enrolled in the Belize and I get an error message saying that the country is not supported.  In the United Kingdom, I changed my region and I still get th

    I use a mac and would like to buy the package of Lightroom.  I had the trial and it was fine.  I was enrolled in the Belize and I get an error message saying that the country is not supported.  In the United Kingdom, I changed my region and I still get the same error message?

    Hello

    Try to subscribe through pricing and membership creative cloud plans | Adobe Creative Cloud

    Hope that helps!

    Kind regards

    Sheena

Maybe you are looking for