MySQL Forums
Forum List  »  General

Re: CREATE VIEW fails, but works as just a SELECT
Posted by: Bob Field
Date: November 01, 2006 08:59AM

The problem is that some of your fields from different tables have the same name. Ideally you should list all of the fields explicitly, using aliases if you encounter duplication. Each of the tables in the join contains at least one field of the same name as in another table, as evident in your join conditions, so you don't have much choice. Also since it's an inner join, the fields are quite likely to contain redundant information anyway, so just eliminate the extra instances of the same column name will suffice.

Options: ReplyQuote




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.