
23/06/2010, 20:01
|
| | Fecha de Ingreso: abril-2010
Mensajes: 24
Antigüedad: 14 años, 10 meses Puntos: 0 | |
Como relacionar datos entre tablas... create table artista
{
artist char(50) not null primary key,
};
create table cancion
{
song char(50) not null primary key,
};
create table cont
{
contid int unsigned not null auto_increment primary key,
artist char(50) not null,
song char(50) not null,
}
Gente buenas noches , e creado estas 2 tablas artista y cancion y lo que pensaba era relacionarlas en la tabla cont , de esta manera ya estarian relacionadas?? osea que si yo hago referencia al nombre del artista en cont y a la cancion , toma el dato de la tabla artista o la tabla cancion ?? sin necesidad de repetirla en esta tabla(cont)?? o hay q agregar algo adicional?? |