How can I get my scrpit to replace or reconstruct objects that are already created?
I am a student of design of database so please bare in mind, I am a beginner.Basically, I want my script to be run again on the same system. When she did this I want to replace or rebuild the items already made by the script before (in this case a number of tables with PK and FK).
At the moment if I do this it just says: objects and referential integrity already exists? Is there a way I can do that, then it replaces them? Moreover, the tables contain no data.
Thanks in advance!
Published by: Jay on November 4, 2010 04:25
Hello
You probably table create statements in a place safe?
You can for example create this kind procedure
CREATE PROCEDURE drop_all_my_tbl
AS
BEGIN
FOR c1 IN(
SELECT table_name,constraint_name
FROM user_constraints
)LOOP
EXECUTE IMMEDIATE 'ALTER TABLE ' || c1.table_name || ' DROP CONSTRAINT ' || c1.constraint_name;
END LOOP;
FOR c2 IN(
SELECT table_name
FROM user_tables
)LOOP
EXECUTE IMMEDIATE 'DROP TABLE ' || c2.table_name;
END LOOP;
END;
/
Then your run it
BEGIN
drop_all_my_tbl;
END;
This will drop all your tables, so be careful.
Also I have not test what I have now the schema to test
Kind regards
Jari
Published by: jarola November 4, 2010 13:36
typo in the script
Tags: Database
Similar Questions
-
I replaced my hard drive. How can I get Windows XP loaded on my computer? I've already paid the fee
Hello rsmith3042000
What kind of system do you have?
Do you have an XP installation CD?
Here are installation tutorials
http://www.theeldergeek.com/xp_pro_install_-_graphic.htm
http://www.michaelstevenstech.com/cleanxpinstall.html
If you had only a recovery partition, it's lost now so you might contact the manufacturer and ask for the CD recovery.
.
-
I have a MacBook Pro. How can I get my calendars customized calendar 8.0 now that 10.11.3 updated? I clicked on view > update and nothing is displayed.
Synchronize calendars with a network like iCloud or Google service?
-
How can I get rid of a notice titled "Safari Alert" that tells me to dial a number, but forbidden access to the i - pad
It's a pop-up trying to rip you off. Clear your Safari cache. Settings-> Safari-> erase history and data from the Web site.
-
How can I get rid of the music on my iphone that I never installed, is not on my reading list, but continues to play to my boredom?
This album of U2 is the only one who could be there that you did not here. This is how to remove it. ITunes 'Songs of Innocence' gift album remove iTunes and purchases - Apple Support from your music library
Any other music on your device is either synchronized, or has been acquired by means of your Apple ID and is available for you to use. These songs have an icon of cloud beside them. They are not actually on the device, but they are available for you to download. You can disable the display of this music if you wish.
-
in newly improved LR6.4, when I want to import from SD card, the images are in a random order, not the order that I pulled on them. Images are scattered. Once imported, the images are correct. How can I get the import to be in the order that I pulled on them?
Is there a sort option near the bottom of the import screen. Have you tried different sort options that are available?
-
Recently, I'm subscribed to Acrobat XI after the test expired, but when I went to turn it on I was asked for the serial number. I don't have the order number on the invoice. How can I get the serial number for the trial software that is on my computer?
Hi Kenneth,
Subscription does not have any serial number. Please use your Adobe ID to update the licensed software.
Kind regards
Rave
-
How can I get my dvd to play on my computer that it stop working all of a sudden
I was watching a dvd on my computer one day and the next day it wouldn't load any dvd, how can I get my computer to play new DVDs
Hi kevingayer,
· What happens when you try to play the DVD?
· You get the error message?
· Have you made changes on the computer before this problem?
Follow these methods.
Method 1: Run the hardware and devices troubleshooter.
http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter
Method 2: Follow the steps and run the fixit of the article.
-
How can I get a click box to interact with an entrance area of text on the same page?
I created a tutorial on the use of a specific system and trying to recreate what the end user would have real in the system. On a slide, the user must enter text in a field, and then press a (click) button to move to the next slide. I want to be able to have the box click validate if the text is correct before moving on to the next slide. Is there a way to get the box click to validate text input? Don't know how to get the two objects to "talk" to each other rather than operating independently.
Literally, I want the user to enter data into the text entry box, and then click get. I need the Get (click box) button to validate the data entered in the text box entry is correct and, if this is the case, advance to the next slide. If the data is bad, I need the Get (click box) button to display the legend of failure and have the end user to re - enter the data correctly.
How can I get the objects to work together?
Hello
You must remove the click box. Yes, you heard me. Remove the puppy.
I know that sounds weird. But bear with me. Once you remove it, double-click the text entry box. Then click on the Options tab. See this option called Show button? Click it, and then click OK to close the properties of TEB.
Now you have the button you want. If you don't want a button, double-click on it and set it as transparent. Delete the text. Position you like, where the click box was before.
See you soon... Rick
Useful and practical links
-
Hello
I received a response and sent my response stating that the Outbox is not displayed anywhere on the home page that displays the Inbox sent etc. I tried to replace the Mozilla Thunderbird exe by downloading and installing again, but it still does not show the Outbox folder see attached. Your response, I think that you did not understand my question. I said that he was shown is no longer as you can see in the image below. It makes me think he must have inadvertently hidden by me. If so how can I make it visible again?
Expand the folders the and you'll probably find the Outbox. This is where it lies.
-
It is used to display the home page when starting, so I could select Inbox or sent messages, etc. But now it starts only on Inbox with no way to get to the home page. How can I restore homepage with various options?
Move your mouse to the left edge of the window
See for this to turn into a double-headed arrow
When it changes, click, hold and drag to the right to discover the files paneThe Thunderbird window needs to be maximized to work
-
The two toolbars have uninstall instructions in their help on the toolbars section. I pasted in the section of troubleshooting below. When I try to find these programs in the menu START, in my settings or in the "Add/Remove Program" section of my control panel, they aren't there. The two toolbars have pre-eminence over gmail, which is my favorite of the navigation toolbar, etc. So even if I can do what I do, I have to firstly my way through the face of Pogo page and then the intrusion of louts on the websites to spawn. Why can't I get rid of these two toolbars? I never intentionally asked for them and I still don't know how they were allowed to be there, but it is clear that I must have done.
Go to: view > toolbars to see if they are there. If they are, you can uncheck the.
-
I have a HP Pavilion laptop, which came with XP on it and XP key on the back sticker. However, when I bought it, it came with a free Vista Upgrade, that I used. Now several years later it says that my copy of Vista is not authentic, but I can't get the CD key to verify that the CD key is for XP, not Vista.
Any ideas of how to fix cela, or should I just try it backward on a XP machine with old code?
Thank you!
Hello
Did you change your computer?
I suggest you follow the link and check.
I also suggest that you follow the link and check
Genuine Windows: Frequently asked questions
http://Windows.Microsoft.com/en-us/Windows/help/genuine/FAQ
Windows could not be validated as authentic
http://Windows.Microsoft.com/en-us/Windows/help/genuine/validation-error
-
I had a crash of the system Jan. After the crash recovery (Windows had written on some parts of the disc but recovered most of the things, however, they were put to the States as if they had just been installed), Thunderbird did something I've been unhappy with & I reinstalled it. When I did it I did not select IPOP or IMAP but come with IMAP, I had never used before and knew nothing of. However, now after reading about IMAP & have consumed with Comcast, I don't like it intensely - it is slow and cumbersome and cannot me save emails with all the parts for them permanently. I did have the time to continue so far. How can I return to the use of IPOP?
POP and IMAP are the two inbound messaging protocols.
SMTP is the outgoing mail protocol.Maybe when Apple invents its own protocol of e-mail it will be iPOP as all other iSomethings
Here are the instructions for switching to Thunderbird from IMAP to pop...
-
I just did a reinstall due to a virus - I try to get my b type
more grand-don't know if this is a firefox issue - also, my speakers are
plugged in, the light is on, but can't get sound - I tried the sound on the background icon, it's MaxHey Red552mimi,
Have you tried to increase the zoom? This is a good option if everything on the page, in addition to text, is too small. Just hit CTRL and + a few times to zoom in. CTRL and 0 will set the zoom back to normal.
If you just want to change the font size, you should watch section of the Knowledge Base on the accessibility in Firefox - make Firefox and work of content for all users. There are lots of good information in there.
In regards to your sound problem, have you looked at what to do if Firefox will play all of the sounds and difficulty common audio and video questions?
Hope this helps!
Maybe you are looking for
-
No sound after installing windows 10
I installed Windows on a PC with windows 8.1 10 and now no sound. I have to download new drivers? ????? Thanks for your help.
-
Satellite Pro L300 - questions ACPI in Linux: buggy dsdt implementation
Hi, I have a L300 with Insyde BIOS 1.50 and I was struggling with the ACPI in Linux (like many others, the web is littered with hacks and workarounds for this laptop). After you enable the acpi kernel debugging, I noticed that some features were mark
-
Issue of fan on hp pavilion dv7 6187 cl
I have a hp pavilion dv7 6187 cl and, recently, the fan stop working properly, so it must be replaced. Anyone know if the fan can be removed from the sink or I have to buy another radiator with the fan. I am aware of the disassembly procedure. Also,
-
Layout table UUT_RESULT PART_NUMBER
In the default database for TestStand schema, I see how UUT_SERIAL_NUMBER is generated by the recall of PreUUT. How can I get the PART_NUMBER to the same charge table UUT_RESULT field? Some of my DUT have different numbers than others. Stephen
-
Simple CVI user interface changes
I'm changing the UI Simple CVI (TestStand 4.1.1) and would like to have a similar functionality using the SequenceCombo and the SequenceView box as the complete UI featured the sequence list box and the box of SequenceView (STEPLISTVIEW). So that wh