MySQL Forums
Forum List  »  General

SELECT column ranges using wildcards
Posted by: John Maxwell
Date: May 05, 2005 12:07PM

I have this simple question, let's say you select data from 2 different tables and those two tables both have a field named 'ID'.

Is there a way to get all the field of the two tables exept the second 'ID' field but using wildcard, for exemple to illustrate the concept:

SELECT table1.*, (table2.* AFTER table2.ID) WHERE year > '2004';

I know this command doesnt work but is there any way to do this?

Thanks

John Maxwell

Options: ReplyQuote


Subject
Written By
Posted
SELECT column ranges using wildcards
May 05, 2005 12:07PM


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.