How to add the reference key after you have created a table?

Hello
I have two tables:

create table (t1)
a key primary number.
b the number);

create table t2)
c number,
d number);


Now, after you have created these two tables I want to alter table t2 by making the column 'c', referring to the table t1. How to do this?

ALTER TABLE t2 add CONSTRAINT PK_C PRIMARY KEY (c);
ALTER TABLE T2 ADD CONSTRAINT FK_C FOREIGN KEY REFERENCES (C) T1 (A);

Tags: Database

Similar Questions

  • How to remove the desktop icon after you have uninstalled program.

    I uninstalled a program and then tried to put the icon on the desktop to the trash.  I get an error message that says that the program cannot be found and try again.  How can I get rid of the icon?

    Hello

    Reboot and see if the icon is still there. If so, try the following:

    Go to control panel/Folder Options, view tab, set the options so that you can see the hidden files and folders and show protected operating system files. You should now be able to see a desktop desktop.ini file. Delete and restart. See if that helps.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How to open the log file after you have used the file system Checker

    I used the System File Checker.  It finds corrupted files, but I can't open the details of sfc with the path used in the system file checker topic 929833

    Ron

    If you don't mind, run a sfc/scannow again. When it of done, don't post the cmd window.

    In the same window of cmd, copy / paste the command line, I gave you, then press ENTER.

  • KB955759 does not appear when I check the updates manually, but it appears with the yellow shield after you have enabled the automatic updates.

    original title: Windows Update acts confused - kb955759 does not appear when I check the updates manually, but it appears with the yellow shield after you have enabled the automatic updates.

    I just reset my CMOS settings, writing zeros for my hard drive, repartitioned, reformatted and used the recovery cd Gateway system to get my computer to Windows 98se - factory settings, except at the beginning of the recovery of the system, when it says "press any key for advanced options," I pressed a key and then I unchecked all the default (3rd party) applications including Norton and left only 2 checked: "Updated USB Hub" and "Windows Shutdown Supplement," while nothing has been installed, leaving only win98.
     
    Then I used my disc XP Home (SP2) update.  I, immediately after the upgrade to Windows XP, installed "Office XP with Frontpage, Developer Edition", then Norton 2012 before never connect to the internet.
    Then, I connected to the internet and continuously update of Norton, before ever hitting the Windows Update page. The first thing I did then was to activate Windows, and then activate the office.
    Then I hit the update of Windows "button" that says "get all your updates in one place... upgraded"Microsoft Update".  I, then, just kept hitting the page update and restart, until I find the SP3.  Then, I took a break, until the next day.
     
    I have an ADSL broadband, with a Linksys EtherFast PCI card.
     
    Then I got SP3, which installed without any problems.
    So I just kept "microsoft continuous update" manually (and reboot), until there is no more updates - EXCEPT, I always uncheck Windows Malicious Software Removal Tool - which was the only screening at the final stop for the night.  I think that I ticked the box "don't ask me about this update".
     
    Then, in the morning, after you have enabled automatic updates, I noticed the yellow shield - Windows security icon (or whatever it's called), so I clicked on it and checked it was tellimg me was available [when I checked "Custom Install (advanced users)"].  What showed was 1 update - 955759 KB.
     
    After the problem, already at the reformat (months and months), see the yellow shield telling me there are updates available, which were already installed (before rebooting), I checked manually on the internet with IE 8, pressing alt, "T", "U".  There is no updated list.  Then I checked through my history of update (twice), and KB955759 had not been installed.
     
    My update setting is to let windows download ('important') updates, but let me choose when to install them.
     
     
     
    What is the right - Windows Update (NO update important reporting) Site, or the yellow shield (reports [a] kb955759 [update])?
     
    I can not yet confirm he is supposed to be an update for XP home kb955759, because I was unable to locate any detailed documentation on this 'thing' that protect the yellow safety seems to think is a significant update.

    Comment 1: To my rquest, a moderator merged your thread in the Sub-forum Win7 updates with your wire in the Sub-forum of updates of Windows XP 20 Feb-12, c. 07:50 UTC.

    Comment 2: If you will not contact the MS Support on this issue?

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Just for the heck of it, I have disabled the automatic updates, cleared my browser cache, checked manually, updates from microsoft (windows) and found none (with the exception of software malware removal tool windows [which I have not installed]).  Then, I turned the automatic updates on, and without even being connected to the internet, the yellow shield popped up with the kb955759 "update"...

    Repost...

    1. If you open Internet Explore (only!) to http://windowsupdate.microsoft.com and run a CUSTOM scan, KB955759 appears in results?... If so, you manage to install it and/or security updates available?

    2 after no. 1 above [<>], is the 'yellow shield' icon appears in the Notification area (on the left of your clock)?  .. and if yes, by clicking on the 'yellow shield' icon tells you that KB955759 or any other updates is ready-to-be-installed?  .. .and if so, you manage to install it?

    3 after doing 1 # & #2 above [<>], is KB955759 or any other updates offered as a ready-to-install update when you go off your computer?  .. .and if so, you manage to install it?

    ... I guess that clearing the browser cache does not erase 'downloaded' updates.

    Nope. If you want to clear the queue of the update...

    OPTION A:

    1. stop the automatic updates service:

    Start > run > (type or copy/paste) services.msc > click OK
    Double-click automatic updates > click stop
    (Stopping the service will take a moment)

    2 remove the contents of the download folder:

    Start > run > (type or copy/paste) %windir%\SoftwareDistribution > click OK

    Open the download folder and delete its content
    Close the window.

    3. start the automatic updates service:

    Start > run > (type or copy/paste) services.msc > click OK
    Double-click automatic updates > click Start
    (Starting the service will take a moment)

    OPTION B:

    1. open Internet Explorer (only!) to http://support.microsoft.com/kb/910336 [don't know the titles, etc..]

    2. make disappear/close the Troubleshooter automatically pop up.

    3 repaired 50202 in DEFAULT modes and AGGRESSIVE. [1]

    4 reboot.

    Does anyone know how to determine if software mailicious removal tool is installed on XP? [source ]

    Check the located log file...

    C:\Windows\Debug\ MRT. NEWSPAPER <>

    Related...

    ... This leaves us with the malicious software removal tool don't appear not.

    I guess I'll have to leave "auto-update" (I often have less than 65 M of free memory left and do not have enough memory to msrt) and don't assume no other current error. [source; 17 Aug-11]

    It's no wonder that you ended up having to do a clean install of Win98SE & then upgrade to Windows XP again!

    ================================================================
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not updates installed in Add/Remove Programs list.

  • Problem has been detected and windows has been shutdown error STOP: 0x0000008E. Get the memory dump after you have installed the trial version of MS Project 2010.__space.

    Original title: problem has been detected and windows has been shut down. Get the memory dump after you have installed the trial version of MS Project 2010.__space.

    Computer Message: Check if you have enough disk space. If a driver is identified in the stop message, disable the driver or check with the manufacturer for driver updates. Try changing video cards.

    Check with your suppliers of material, updates the BIOS. Disable the BIOS memory options such as implementing caching or shading. If you need to use Safe Mode to remove or disable components, restart your computer, press F8 to start advance startup options, and then select Safe mode.

    Technical information: * STOP: 0x0000008E (0xC0000005, 0x8054556C, 0xADB78A98, 0x00000000)

    Beginning physical memory dump

    Total physical memory dump. Contact technical support for further assistance group.

    Hi fernandomventura,

    Step 1: Disconnect all external devices (printers, scanner, USB (universal serial bus) readers, etc...) Except the keyboard and mouse and then start.

    If this solves the problem, then add back devices at a time until you discover the piece of hardware causing the issue.  Then get any drivers\software update for the device.

    Step 2: Follow the steps mentioned in the articles below which deals with a similar question

     

    General troubleshooting for an error message that you receive randomly in Windows XP: "Stop 0x0000008E"-restore the system to achieve ".

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

    You receive a random "0x0000008E" error message on a blue screen in Windows XP

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

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to re - install Photoshop CS6 after you have uninstalled it from my Windows PC?

    How to re - install Photoshop CS6 after you have uninstalled it from my Windows PC? I want to uninstall my present download because I have problems with it and re - install.

    Hello

    You can install and activate the perpetual software (purchased) two computers of the same type (mac or pc), as long as you use it on one at a time.

    Download link:-applications download Creative Suite 6

  • APEX does not open after you have created the new Oracle listening port

    Hi guys,.

    I had to re register Oracle listener using "lsnrctl start". A new listening port has been created and I am able to connect user Apex by PL/SQL Developer. Port 8080 is open.
    But if I try to open the application APEX of URL (http://localhost: 8080/apex/f? p = :::) 4550:1:0 its not opening not.) It was working fine until yesterday.
    I use Oracle XE 11 g and APEX 4.2

    C:\Windows\System32 > sqlplus sys as sysdba

    SQL * more: Production of liberation 11.2.0.2.0 kills may 7 22:21:18-2013

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    Enter the password:

    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    SQL > SELECT DBMS_XDB. GETHTTPPORT FROM DUAL;

    GETHTTPPORT
    -----------
    8080

    SQL >

    so I do not know why APEX does not URL. What I have to put something at the TOP after you have created the new listening port. Can you please help?

    Kind regards
    Marie Claire

    Published by: 1004608 on May 7, 2013 14:40

    Link to your thread to listen would have helped: Oracle XE 11g with Apex No problem of Listener (ORA-12541: listener TNS:no)

    It seems that your listener uses the static instance via the listener.ora file registration and missing entries for the http service. Edit your listener.ora (F:\Apex_Installed\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora) file and add the following entries in the listener.ora file DESCRIPTION_LIST. Then, restart the listenerer.

    (DESCRIPTION=
      (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8080))(Presentation=HTTP)(Session=RAW)
    )
    
  • ccSvcHst.exe"(Norton Internet Security) - appears in the section Customize the Notification area after you have uninstalled all Norton products

    Why "ccsvchst.exe" (Norton Internet Security) shows in the section Customize the Notification area after you have uninstalled all Norton products on my Windows 7 PC (laptop Samsung)?  What's in this file and it is actively do anything on my pc?  Thank you.

    Maybe you need to rid your computer of Norton more completely.
     
  • Why can't I import several items after you have created a new folio?

    Why can't I import several items after you have created a new folio?
    My Folio Builder does not work and stops all the InDesign program, so I have to re - open.
    Thank you very much!

    Other layouts are not supported for import. The only way is to use the

    Add the command.

  • How do I create a branch to the form after you have created a new record

    Hello

    I created a master/daetail form with detail on the same page.
    It works very well.
    When you create a new record, on the details of the page, you enter the data, and you click Ok.
    Then you are directed to the main form, a report containing the lines of recordings.
    You must then click on the link in the column to change the record to add details.

    I want to do it is to branch directly on the same page after you create the record. Order to dot Hat I created a branch whith the value equal to CREATE demand.
    And the target is the same page. The problem is to the value of the primary key. This KP is created after sending, and it is not possible to recover because it is created right now. I hope I'm clear.

    To sum up the question: how to create a branch immediately to the same page after creating a new record?

    I have the page on

    [http://apex.oracle.com/pls/otn/f?p=4550 | http://apex.oracle.com/pls/otn/f?p=4550]

    The workspace is ESPACE2008
    Is the user name: guest
    the password is: noproblem

    The long form is page 42.
    The main form is page 41
    Unfoirtunately tables are not available.
    You can see the process of branch No. 50 on page 42.

    Thank you very much for your help.

    Christian

    Christian,

    I couldn't connect to your ws because I don't think that your guest user has developer privileges. But have you tried 'Back in the agenda key' property in the region of origin of your page DML process. This should return the value of the primary key newly generated in a page element when the page is loaded.

    Anthony.

    -----------
    http://anthonyrayner.blogspot.com

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

  • Problem product key after you have reinstalled Windows XP.

    Original title: Re-install windows XP

    My computer has a virus and so I had to format and reinstall windows XP.  I'm at the point where I have to enter the product key, but it won't accept it. I tried to change the B of 8 etc, but nothing helped. Can you help me?

    Hello

    1. are you using a CD provided by the manufacturer of the computer, or you use a retail XP CD?
    2 is the key that you are using a sticker on the computer or the one included with a purchase XP?
    3. What is the exact error you get when you enter the product key?

    If you use the key of a sticker on the computer, you need to be sure to use an OEM provided the CD to reinstall.
    The key to the sticker on a computer that says "OEM" will not be able to activate on a Setup from a retail CD.

    Follow the steps in the article.

    You receive an error message after you enter the product key when you try to install Windows XP http://support.Microsoft.com/kb/310637

    For reference:
    How and when to contact Microsoft and support Customer Service
    http://support.Microsoft.com/kb/295539

  • Backup and restore create a journal after you have created a System Image?

    Hello. Regularly, I run a backup of Windows, including an Image system, every Sunday nite. Backup of the last nite seems to work normally, except when I look at the last nite WindowsImageBackup, it seems empty. Shouldn't I perceived some kind of error message if the process of the Image of the system has failed? Is a journal written anywhere that describes the backup. If not, how can I determine if it is any good or not. The backup of the user data which took place at the same time seems to be fine. Thank you.

    Backup of the last nite seems to work normally, except when I look at the last nite WindowsImageBackup, it seems empty.

    Mystery solved.  When I right click the selected properties and a folder of images, he showed 0 file 0 bytes. It wasn't until I left clicked on the backup folder to open it that I was able to verify the content. After you open the folder, right click and selecting Properties shows now the 50 GB I expected to see.

  • How move to a specific folder after you have obtained the key to the pop list?

    Hello

    I have a non tabular form. I provided a Lov POP to display and returns the primary key of the table.

    When a particular record is selected in the list, I want the page to pick up that particular line of the table and fill in the fields. It is an essential feature that I need in most forms, so use can easily pick any folder of choice.

    Can someone help me?

    Thank you

    SEB

    Hello
    Create an element as a popup lov (: p1_key)
    create a button to send the page to refresh the query (named query)
    create a request that form where clause with the element: p1_key as a filter

    you click on the context menu and have a value, and then click the named query button
    and then you have filtered recording...

  • How to add the release key to SX20 TC7.1.0

    After upgrading to TC7.1.0.48db3d2 SX20 had misdiagnosed:

    REVIEW: Valid unlock key

    Missing the key release for undefined. The system will not be able to make all the calls. Please Add a unlock key valid.
     

    But canned-> software update, I might add only the Option, NOT the release key key

    How can I add * key to liberation?

    Hello

    you need would not release key for the upgrade over version 6.3 TC.

    Adding release key tab on GUI is removed for the same.

    However, you always have the option to add it via API, you can use below command:

    xcommand SystemUnit ReleaseKey add:

Maybe you are looking for

  • Can I upgrade to iOS 10 directly from iOS 8 / 7

    I noticed that we have some users in my company, who are still on iOS 8 and same iOS 7. Their devices can be updated, but they just chose not to. I want to advise them to update, but my boss had a good question. They can upgrade DIRECTLY to iOS10? Or

  • Window 7 has embedded in double copy/file finder software...

    I believe that I have multiple/duplicate files and photos in my laptop with windows 7... According to me it should automatically report and encourage us to delete these files to free up space... Please advise...

  • Change to the Question of the effect of color

    Hi This is only my second year really using after effects and I've not really used this feature before. But basically, I want to make the color of the water kettle. His white origin. Now, I don't expect the change of color to exactly match the kettle

  • How can I draw in a pdf document?

    Im a teacher and I receive my homework to students as pdf files. And I want to be able to draw in these files, my students writing notes. Since I'm a math teacher, I would like to be able to write a mathematical notation and make explanatory drawings

  • Acrobat Standard or Pro?

    Anyone who is familiar with the main differences between these two versions of Acrobat?First of all, I want to create PDF files from Word documents with these features:(1) retain hypertext links from the Word document (the two links navigation to go