Je suis au niveau 3 avec sites3
Je dois chercher Gamai dans site
Cherchons le type de site
requête : SELECT t.typcategory FROM pg_attribute a JOIN pg_type t ON t.oid = a.atttypid JOIN pg_class c ON c.oid = a.attrelid JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relname = 'sites3' AND a.attname = 'site' AND a.attnum > 0 AND n.nspname = 'public'Je dois chercher Gamai dans region_fr
Cherchons le type de region_fr
requête : SELECT t.typcategory FROM pg_attribute a JOIN pg_type t ON t.oid = a.atttypid JOIN pg_class c ON c.oid = a.attrelid JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relname = 'sites3' AND a.attname = 'region_fr' AND a.attnum > 0 AND n.nspname = 'public'Je dois chercher Gamai dans region_en
Cherchons le type de region_en
requête : SELECT t.typcategory FROM pg_attribute a JOIN pg_type t ON t.oid = a.atttypid JOIN pg_class c ON c.oid = a.attrelid JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relname = 'sites3' AND a.attname = 'region_en' AND a.attnum > 0 AND n.nspname = 'public'Erreur SQL tout2 :
SELECT * from biblio LEFT JOIN biblio_sites ON (biblio_sites.id_biblio=biblio.id_biblio) LEFT JOIN sites sitesON (sites3.id_site=biblio_sites.id_site) WHERE biblio.id_biblio = 3971
ERROR: syntax error at or near "." LINE 1: ...iblio.id_biblio) LEFT JOIN sites sitesON (sites3.id_site=b... ^