visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
294 experts, 1172 registered users, 1625 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


The DDRK link is back online.
We got a one week service interruption, sorry.
(23-30/01/2010)

Databases :: MySql :: Different table owners


By: Squibi U.S.A.  Date: 08/02/2003 00:00:00  English  Points: 75 Status: Answered
Quality : Excellent
I'm about to change from a SQLServer 2000 to MySQL. The problem is that my database has tables with same name but different table owners. Looks like TO1.TABLENAME and TO2.TABLENAME. But MySQL doesn't seem to support tableowners or am I wrong?
Anyone who knows how to get around the problem. I don't want to merge the tables, but I know that is an option. That would create a lot of other problems. :-/
By: VGR Date: 08/02/2003 05:47:00 English  Type : Answer
yes and no
what you call a table owner is treated as a database in MySql

I suggest concatenating nameofowner and tablename so that you end up with TO1tablename and TO2tablename ; this way you'll stay in the same database.

In short, you are right, MySql doesn't support "table owners". SQL 92 neither ;-)
By: Squibi Date: 09/02/2003 00:28:00 English  Type : Comment
Thanks for the answer. I don't think concatenating nameofowner and tablename will solve the problem though. It would create a lot of work in the business layer. But I might be able to work with more than one database. That seem to be the easiest solution without a lot of changes in the code.
By: VGR Date: 09/02/2003 00:38:00 English  Type : Comment
yes, it's not that difficult. You could even have a database per "previous owner", but then you would have to consolidate tables from multiple databases in case you wanted "all owners' thattable"

Do register to be able to answer

 Add This Article To:
 del.icio.usDel.icio.us  diggDigg  googleGoogle  spurlSpurl
 blinkBlink  wongWong  simpySimpy  yahooY! MyWeb 
EContact
browser fav
page generated in 62.142130 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page