Re: Need one table with two names
Posted by: Peter Brawley
Date: October 20, 2011 03:32PM

> it would require me to find and edit every "zips" table query string in the code.

?! You would change those SELECT statements if and only if you wished to make the change described in your original post.

> And, my selects are seldom "*" and often something unique.

Makes no diff. Given ...

create or replace view postalcodes as select * from zips;

you can write ...

select this_specific_column from postalcodes;

> What I've been hoping for is a change that can be applied to the database outside of any changes to query strings.

You can implement any name preprocessing conventons you please in your apps, but MySQL knows nothing about preprocessors.

PB

Options: ReplyQuote


Subject
Written By
Posted
October 17, 2011 08:52AM
Re: Need one table with two names
October 20, 2011 03:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.