Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/09/2009, 02:59
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Insert ... Select

Prueba con esto:

INSERT `blog-categoria` (blog_url, id_catego) SELECT 'http://pirulex.com', id FROM categorias WHERE nombre='Deportes'