MikeLamb
Member
Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
|
is it possible to forward all queries from one table to another? Ie all queries to table1 actually query table2
i know its a strange question, and theres no way i can just rename the table. The 2 tables are identical, and i have one load of scripts querying one and another load querying another
(i dont think it is possible, but would make my life much easier if possible!)
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
change the scripts to query the same table...?
|
MikeLamb
Member
Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
|
yeah, thats what im going to have to do, but there are literally hundreds of queries!
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
run a find and replace.... can't take more than 30 mins....
[Edited on 13-05-2005 by Antz]
|
MikeLamb
Member
Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
|
yup, the problem is that both tables have prefixes, each set of scripts has a different prefix. The prefix and the actual table name are only brought together in all of the mysql functions,
so a find and replace wont fix the prefix, just the actual table name
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Large duplication of data or fix the programming, I'd choose option 2.
|