Is this a valid query?
Is this a valid select statement in mysql :
SELECT * FROM table1 as t1, table2 as t2 WHERE t1.id=t2.id;
Or am i supposed to list all the columns i wish to retrieve e.g SELECT t1.nameas name, t1.dob as dob, t1.address as address, t2.salary as salary, t2.dept as dept FROM table1 as t1, table2 as t2 WHERE t1.id=t2.id;
Subject
Written By
Posted
Is this a valid query?
April 09, 2007 08:26PM
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.