-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Clone data in the same database
PostPosted: Sun Jan 29, 2006 7:30 am 
Beginner
Beginner

Joined: Fri Sep 24, 2004 7:15 am
Posts: 40
Hi,

I know the existence of the "replicate" utility, but this is intended for a different database.

So, how do you "clone" some data in the same database? For example, imagine you have the typical application for accounting, where all the tables are filtered by the company you are using in each moment. And you want to copy a complete company into a new one, i.e. copy all the data belonging to one company to one new company, so at the end of the process, both companies have the same data, but obviously different primary and foreign keys amongst them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 29, 2006 12:22 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
See "Row Level Security" in database documentation.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 1:25 pm 
Beginner
Beginner

Joined: Fri Sep 24, 2004 7:15 am
Posts: 40
Sorry, but what does "Row level security" has to be with my question?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.