Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: deep copy of complex database tables

by Thilosophy (Curate)
on Jun 21, 2005 at 11:04 UTC ( #468626=note: print w/replies, xml ) Need Help??


in reply to deep copy of complex database tables

You may want to look at Oracle-supplied utitilies, in particular exp, which dumps consistent snapshots of parts (or the whole) of the database. You can then later import these with the imp utility.

If you are only concerned with a few tables, you can just do something like the following (which would also work across database links if you set those up):

create table testschema.blah as select * from realschema.blah;

What do you mean by "complex" tables that need a "deep copy"?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://468626]
help
Chatterbox?
[james28909]: thanks
[james28909]: what i am trying to do is track state of a chat based application. i need to be able to store the channels and such for a user, and when they join a new server/channel i need to be able to update that feild.
[james28909]: do you think OO would best suite that?
[karlgoethebier]: james28909: The last two are not mainstream. You have been warned ;-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-05-25 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?