Subversion Repositories eFlore/Applications.del

Rev

Rev 1870 | Rev 1880 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1870 Rev 1872
Line 41... Line 41...
41
-- -----------------------------------------------------
41
-- -----------------------------------------------------
42
-- View `v_del_image`
42
-- View `v_del_image`
43
-- -----------------------------------------------------
43
-- -----------------------------------------------------
44
DROP VIEW IF EXISTS `v_del_image` ;
44
DROP VIEW IF EXISTS `v_del_image` ;
45
DROP TABLE IF EXISTS `v_del_image`;
45
DROP TABLE IF EXISTS `v_del_image`;
46
CREATE OR REPLACE VIEW v_del_image AS
-
 
47
    SELECT i.id_image, i.ce_observation, 
-
 
48
           i.ce_utilisateur AS i_ce_utilisateur, i.prenom_utilisateur AS i_prenom_utilisateur, i.nom_utilisateur AS i_nom_utilisateur, i.courriel_utilisateur AS  i_courriel_utilisateur,
-
 
49
           hauteur, largeur, i.date_prise_de_vue, i.mots_cles_texte AS i_mots_cles_texte, i.commentaire AS i_commentaire, i.nom_original, 
-
 
50
           i.date_liaison, 
-
 
51
           o.* 
-
 
52
    FROM tb_cel.cel_obs AS o 
-
 
53
        INNER JOIN tb_cel.cel_images AS i ON o.id_observation = i.ce_observation 
-
 
54
    WHERE i.transmission = '1';
-
 
Line 55... Line 46...
55
 
46
 
56
-- -----------------------------------------------------
47
-- -----------------------------------------------------
57
SET SQL_MODE=@OLD_SQL_MODE;
48
SET SQL_MODE=@OLD_SQL_MODE;
58
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
49
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
59
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
50
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;