Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2005, 09:38
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
seria algo asi:

select chiste,categoria from chistes
inner join categorias on categoirias.id_cat=chistes.id_cat
where id_chiste=2900

La tabla chistes:
------------------------
id_cat
id_chiste
texto_chiste

Tabla categorias:
-------------------------
id_cat
categoria