trouble with query - Mailing list pgsql-sql

From alexj
Subject trouble with query
Date
Msg-id 3e7731a9$0$1051$5402220f@news.sunrise.ch
Whole thread Raw
Responses Re: trouble with query
List pgsql-sql
Hi,

I'm looking how can I do to insert multiple values from a
complexe query.

What I want to do is something like that :

INSERT INTO est_planifie_jour (id,ref_activite,ref_ressource,ref_jour)(SELECT nextval('est_p_id_p') FROM
est_planifie),(SELECTid_activite FROM activite WHEREnom = 'SGBD 02 cours th�orique),
 
(SELECT ref_ressource FROM personne,groupe,fait_partieWHERE groupe.nom ='cycle 1b' ANDfait_partie.ref_groupe =
groupe.id_groupeAND
 
personne.id_personne = fait_partie.ref_personne),
(SELECT id_jour FROM jour WHERE jour.id_jour = 3)

Does anyone can advice me ?
--
/**
* Alexandre Jaquet
*/




pgsql-sql by date:

Previous
From: Carmen Sarlo
Date:
Subject: Re: Poor performance on a right join
Next
From: jasiek@klaster.net
Date:
Subject: Re: trouble with query