remove the problem of reclassification of and truncation

Hi gems... good afternoon...

problem 1:

I have several tables with interdependencies... That is, primary key-foreign key relationship.
now, first I truncate the child table 1...
-truncate table child_1;
and it got truncated with success.
Then, I tried to truncate the corresponding table of the parent 1...
-truncate table parent_1;
then it does not allow me to do so because this table is referenced by this child table 1.
but when I used the command "delete from '...
-delete from parent_1;
then he successfully deleted all the records of the parent 1 table.

WY, this happened? as per my knowledge, delete and truncate do the same...


problem 2:

by the above method, I get to make all the empty tables... and I used only "delete from" command after that...
but after you remove all of the lines of another child, table successfully...
-delete from child_2;
When I tried to delete all the records in the corresponding parent table...
-delete from parent_2;
He stopped me again... (am hanged)
then I had to disable foreign key constraints in the child table 2 and then he allowed me to truncate the table parent 2...

Please help these behaviors... in both cases the children tables are empty... for a parent-child relationship truncation does not, but ' delete of ' works... on the other hand, for an another parent-child relationship the truncate and ' delete of ' do not work if the foreign key constraints are enabled...

Because the truncation does not check if there are rows in the child table, it checks only "fk there" and if this is the case, it will fail.

Tags: Database

Similar Questions

  • I can't open the system when he was sht down. But the system was the heat and I have to remove the battery for a while and it should re-sttart, what the problem.

    I can't open the system when he was sht down. But the system was the heat and I have to remove the battery for a while and it should re-sttart, what the problem.

    Too generic a question, can you clarify considerably more for us? Your question could be reformulated in the following way and always be true?

    "I can't start my computer once he has had a BSOD. Something overheated, but I don't know. I removed the CMOS battery and replaced in order to asure me that a bad overclock on a core component has not caused the problem. Now, it restarts correctly, what is / was the problem? »
    The foregoing, what I thought you meant. The above statement is correct?
  • Removing the problem of Flex projects

    I have experienced the problem after several times and that you want to document on this forum.

    While working on a mxml file, I press 'delete' several times. The result is that several project (including the one that I am currently working) files and their content is permanently removed from the Flex and my hard drive.

    Normally, when a project is deleted a dialog box appears "are you sure you want to remove project"xxx '?" In the cases I describe, the warning dialog box does not appear. Needless to say, it's a devastating bug. I'm meticulous about backing up my projects, but it's always a problem when it occurs.

    I do not know that other people must have experienced this bug. Is it possible to avoid it in Flex 3 and nothing has been done about it in Flex 4?

    Beware also the Ctrl-Z.

    Even if the last thing you clicked on was not the Flex Navigator's point of view, sometimes by typing Ctrl-Z Deletes files in your project in inappropriate ways.

  • Remove the lock on all files and folders...?

    There has been a lot of questions on how to remove locks on folders and files on Windows 7. Those I've read on this site worked and the lock can be removed easily.

    ... However, you cannot do a folder/file at once. I have a lot of items on my desk, and more than half of them have these locks on them. How I removed the locks on all files and folders on my user account. There are only 2 accounts on the computer. Mine and another person. Mine is set to the administrator account, the other is just a standard user. I started by ignoring the locks for months, then I tried to get rid of them by myself, and frankly, I have no idea what I'm doing. Please, I beg you. If you know of a way, share it!

    If the locks would not constitute an obstacle to operations, why bother?

    And BTW, it; s no need AT ALL to run as an administrator on a daily basis in Windows 7. Forget everything THAT you have learned about XP - Win 7 is much more advanced.

    You realize that the built-in Administyrator account is disabled by default, and if it is possible for him, that may be beyond what you're comfortable with?

    Create another Admin account, call the Admin or Tech or similar and give it a password. Let this accouynt for the elevation of access and privilege of emergency and activate your account for daily use in a Standard user account. Your computer will be safer that way.

    If you find my answer helpful, please click the button "Vote as helpful"! Thank you!
    My Blog

  • Lack MSVCP110.dll Adobe Premiere Elements on 10 is needed after installed update. Impossible to correct the problem after reinstalling, deleting and reinstalling.

    How can I fix missing MSVCP110.dll Adobe Premiere Elements on win 10 after installed update. Impossible to correct the problem after reinstalling, deleting and reinstalling.

    Hello

    Please visit https://helpx.adobe.com/creative-cloud/kb/missing-msvcp110dll.html

    Hope that helps!

    Kind regards

    Sheena

  • Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    Impossible to update LR CC ~ my one day to change and nothing work updated my Mac and all LR will do is CRASH!  Need help.  Tried to stop CC and remove the 1.0 file already and who does not work for me.  What can I do?

    If lr crashes repeatedly, reset preferences.   http://www.lightroomforums.NET/showthread.php?14226-resetting-%28or-trashing-%29-the-light file-Preferences-room

  • Need to remove the space between < af:panelGrouplayout > and < af:panelBox >

    Hi all

    I use JDeveloper 11.1.1.6.

    My scenario is I need to stretch some fields for all browsers, so I use Panel box inside the < f: facet center = name > panelStretchLayout.

    It works very well. But some scenarios need to display the header above the group box elements. Then I try to add panelGroupLayout in < f: facet = top name >. It is stretching very well, but is always to show space between < af:panelBox >.

    How can I remove the space between < af:panelGroupLayout > and < af:panelBox >?

    My Codes like this,

    < af:panelStretchLayout id = "PSL1" inlineStyle = "" margin-top: 30px; ">"

    < f: facet = 'top' name >

    < af:panelGroupLayout id = "pgl4" layout = "vertical".

    inlineStyle = "" background-color: red; ">"

    < af:panelGroupLayout layout = "horizontal" id = "pgl1" >

    < af:outputText value = 'Day' id = "ot1" / >

    < af:outputText value = "Week" id = "ot2" / >

    < af:outputText value = 'Months' id = "ot3" / >

    < af:outputText value = 'Year' id = "ot4" / >

    < / af:panelGroupLayout >

    < / af:panelGroupLayout >

    < / f: facet >

    < f: facet name = "center" >

    < columns af:panelDashboard = rowHeight '1' = "100%" id = "pd1" >

    < af:panelBox id = "pb1" showDisclosure = "false".

    showHeader = "never" > < / af:panelBox >

    < / af:panelDashboard >

    < / f: facet >

    < / af:panelStretchLayout >


    Thank you...

    Same answer as your other thread need to hide the space between &

    Use firebug to see if a style is the cause because it is not reproduced.

    Timo

  • When I have videos on my calendar, they do not play in the screen of the monitor. I hear the audio but can't see the image. To test if my new files are somehow the problem, I went back and used video files that I have used successfully a year ago and th

    When I have videos on my calendar, they do not play in the screen of the monitor. I hear the audio but can't see the image. To test if my new files are somehow the problem, I went back and used video files that I have used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but don't see any video. Have I changed it some setting that controls video playback in the monitor window?

    Randy Ruttger

    Thanks for the follow-up.

    Missing in this equation are the Premiere Elements version you were using and the operating system on which it is running. But...

    The Act is accomplished. But... Up to now, and after that you went ahead and moved to version 12, we now learn what Premiere Elements version you were using. We don't yet know the operating system involved.

    You said first Elements 10. First 10 Elements is affected by a problem serious display known if the computer uses an NVIDIA GeForce video/graphics card card. In this issue, the only cure is to roll back the version of the driver about may 2013. The description of the problem and how to make the rear roller are described in one of the messages at the top of this forum. What video/graphics card your computer use?

    On another front, Adobe will release a new version of Premiere Elements any day now. Not one, but Adobe knows the function defined for the new version. This type of information is announced at the time of the release of the new version.

    So the solution to the problem you presented in this thread could have been...

    1 roll back the version of the NVIDIA GeForce driver for all may 2013 if possible (Windows 8 or 8.1 64 bit, maybe not possible)

    2. move to a different version of Premiere Elements (which you did)

    I offer the foregoing for consideration so that you can review your decisions. We are pleased to learn that the first items 12/12.1 works for you.

    Please do not hesitate to ask questions and seek clarification, but do not forget that the answers are in the details.

    Best wishes

    RTA

  • I managed to remove the menu bar of NoScript and NoScript option when I right, click on a page, how to make them come back?

    I tried to allow a Web site in NoScript menu, when I must have accidentally pressed something and the bar menu all disappeared. While I was trying to fix it, I managed then to remove NoScript option in the context menu. So now I can't access my NoScript, and I tried to re - install but nothing works. How to make a comeback?

    menu bar is missing:

    https://support.Mozilla.com/en-us/KB/menu%20bar%20is%20missing

    You can see in TOOLS then modules noscript

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • HP Envy 15 k046nd: Envy 15 k046nd how to remove the keyboard (shift of collage and key)

    Hi all

    Short version:

    Does anyone know how to remove a single key on the keyboard without breaking? (or if it is still possible) I tried some things, but have failed.

    Long version:

    Unfortunately, I spilled lemonade on my keyboard last week. I cleaned it all that quickly, and nothing is technically wrong. But after 2 days some keys on my keyboard started to stick very bad, especially the entrance and the shift key. They still work, but it's very annoying. I have tried lifting below them and cleaning, but that has not worked, and I also can't get down them. I looked for a way to replace the keyboard, but I have to essentially take the computer laptop all apart + it's expensive. I hope someone can tell me how to down the different keys without breaking!

    Thank you

    Leon

    Hi there @leonsmits,

    Welcome to the HP support community! I read your post and wanted to tender hand can help you! I read that you want to remove the keys of the keyboard because they hold and you want to clean.

    If a key is physically stuck in the down position, you should not replace your laptop. Many keyboards have keys that can be removed by inserting a knife to butter under one edge of the button and gently lifting upward on the upper and lower edge. Please NOTE: To avoid damaging the cushion under the key, insert the knife to butter only 1/8 of an inch under the edge of the key

    After having removed the key, using a buffer with alcohol, clean the underside of the key and the key on the keyboard slot. Put the key in the snapping it back in place.

    Here is a document for you called portable keyboard troubleshooting. There is a section in this document, called a laptop key stuck. This section will help you to guide you how to clean these keys.

    If the keyboard doesn't have keys that can be removed, you may need to replace the keyboard or laptop service.

    This answer doesn't solve your problem or answer your question? If so, please share the good news! Inform others that this answer was helpful by clicking on the button accept as a Solution . You can also show your appreciation by clicking thumbs-up.

    If you need assistance, I would be more than happy to continue to help you. Please re-post with the results of the resolution of the problems.

    Thank you!

    Have a great day!

  • Help me REMOVE the duplicate folders My Documents and others created automatically when I install Virtual PC in XP Mode to run older programs. I removed the computer virtual and XP, but it does not remove the My Documents folders duplicate.

    While trying to run some older programs (Corel) in characteristic as advertised XP mode from my new Dell laptop and Windows 7 PC, I created Virtual PC and XP mode Setup.  Somewhere during this process, the system created in double My Documents, my pictures, my videos, files etc. that you can not (no authorization) access through Windows 7.  I understand that they may is accessible while you were in Virtual PC.   I came to my senses after the poor performance of Windows XP/Virtual PC and decided to remove remove these programs (and buy Corel for Win7).  I followed the instructions for a good dismantling of Microsoft who think in the end, these inaccessible files would disappear and I would have a struture of own file again.  However, duplicate inaccessible folders still remain and I can't get rid of them.  Believe me - it's a pain because it's very confusing when you browse folders.   There is no files in these folders, so there is nothing that we need to go.

    Please, for the love of peace in my family, tell me how I can get the PC back where it was when we first install Windows 7.   And - what's the problem of not having a complete control of my pc?  Personally, I'm offended that Microsoft has locked the users so that they cannot use their own brain - apparently I'm not the only one...  If you are willing to share, I would appreciate a detailed response.

    Hello, SuperMomNot

    Where are these records?

    Virtual PC will create only shortcuts to installed applications in XP mode, no records. The ability to open and save files that are stored on the host computer is made via the network sharing of files between the two.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • can not access my fulltilt poker account. application failed because libpng.dll was not found.re - inbtalling may fix the problem. Does'nt and we tried everything.

    the same problem occurs on laptop and main computer. I use windows care 1 for safety. I completely uninstalled and installed REE fulltilt. My computer won't load anything that is associated with the site. Even on google. I used fulltilt for a year and now when I'm home from my heart bypass surgery he'll let me make updates of the site. Sometimes it is just their and flips cards and I have to restart the compuyer down. I need really it's for entertainment that I will be put up for a while, thank you

    Hi papadarrel

    Try a few steps to check.

    Step 1: Uninstall the program by using The Windows Installer Cleanup utility.

    Try:

    1. Save the Windows Installer Cleanup Utility package on your computer

    2. right click on the Windows Installer Cleanup Utility and run as administrator

    3. follow you prompt in the installation wizard

    4. Once completed the installation, click on the Start Orb. Click on all programs

    5. click on Windows Installer Clean Up Ultility. Select Full Tilt Poker (if the list)

    6. click on remove, click on OK. Click exit

    Step 2: Now, reinstall the program and check.

    Step 3: If this does not work, then try to run the System File Checker tool and check.

    Also refer to:

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/21d4a8ca-4105-42DF-9FF1-b86a00e3c321

    After back and let us know if it helped to solve your problem.

    Thank you and best regards,

    R uma - Microsoft technical support.

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

  • How to remove the password requirement to receive and send e-mail

    How can I remove the requirement to enter a password every time I opened TB and whenever I send an email?

    You can tell Thunderbird to remember the password for you, so you won't have to enter each time.
    Check the box when you get the password.

  • My mozilla recently opened emails see the problem of loading pages and emails in the Inbox are not open and other email folders also not load

    recently I downloaded many video converter software. After that whenever I open my emails, I'm not able to load the pages. Only, he opens the Inbox and when I click on any mail in the Inbox, it opens the mail and immediately which automatically closes a few seconds and not be able to display messages. It displays also error message on top a second (e.g. loading problem) same error message appears when I try to open any other folder as spam, etc. in e-mail and project files does not open and only inbox is up but not able to open e-mail messages. Is the same with all the photo files or those things accessible through google search, never, it opens and opens like email, closes immediately. I tried deleting and reinstalling mozilla, but the problem still persists.

    You can try the following steps in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • I send email to different contacts in different groups. Apple has removed the old symbol of head and shoulders to select contacts. The new system if possible he's so screwed you cannot understand it.

    Apple has removed the symbol of the head and shoulders of e-mail that was used to select contacts. Very very easy. Now, it's so complicated on my new macbook, it is impossible to understand how to select several contacts during transfer or composition. Groups for me is not the answer.

    I'm not sure that I understood what you're asking, but you select several contacts in Contacts.app in the standard way. It is to hold down the ⌘ (cmd) key while selecting them with the mouse clicks. Then drag the names chosen for the To: field of the message.

    C.

Maybe you are looking for