consultas a multiples tablas
Hola por favor quisiera que alguien me oriente sobre las consultas a tablas multiples, en postgresql tenía esta consulta:
SELECT a.nombres, b.materias FROM alumnos a, clases b WHERE a.id_alumno=b.id_alumno;
En Mysql esta consulta sería mas o menos;
SELECT a.nombres, b.materias FROM alumnos, clases WHERE alumnos.id_alumno=clases.id_alumno;
mi pregunta es si en mysql no permite usar alias en las tablas como en postgres como puedo diferenciar los campos de dos tablas que tengan nombres similares, existe alguna consulta que me permita hacer algo similar a lo que hacia con postgres??
Desde ya gracias por la ayuda a todos.
Subject
Views
Written By
Posted
consultas a multiples tablas
8771
March 28, 2008 03:41PM
2079
March 29, 2008 05:50PM
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.