Line 293... |
Line 293... |
293 |
-- View `del_plantnet`
|
293 |
-- View `del_plantnet`
|
294 |
-- -----------------------------------------------------
|
294 |
-- -----------------------------------------------------
|
295 |
DROP VIEW IF EXISTS `del_plantnet` ;
|
295 |
DROP VIEW IF EXISTS `del_plantnet` ;
|
296 |
DROP TABLE IF EXISTS `del_plantnet`;
|
296 |
DROP TABLE IF EXISTS `del_plantnet`;
|
297 |
CREATE OR REPLACE VIEW del_plantnet AS
|
297 |
CREATE OR REPLACE VIEW del_plantnet AS
|
298 |
SELECT o.*,
|
- |
|
299 |
i.id_image,
|
298 |
SELECT `o`.`id_observation` AS `id_observation`,`o`.`ce_utilisateur` AS `ce_utilisateur`,`o`.`prenom_utilisateur` AS `prenom_utilisateur`,
|
300 |
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,
|
299 |
`o`.`nom_utilisateur` AS `nom_utilisateur`,`o`.`courriel_utilisateur` AS `courriel_utilisateur`,`o`.`nom_sel` AS `nom_sel`,
|
- |
|
300 |
`o`.`nom_sel_nn` AS `nom_sel_nn`,`o`.`nom_ret` AS `nom_ret`,`o`.`famille` AS `famille`,`o`.`nom_referentiel` AS `nom_referentiel`,
|
- |
|
301 |
`o`.`zone_geo` AS `zone_geo`,`o`.`latitude` AS `latitude`,`o`.`longitude` AS `longitude`,`o`.`altitude` AS `altitude`,
|
- |
|
302 |
`o`.`date_observation` AS `date_observation`,`o`.`mots_cles_texte` AS `mots_cles_texte`,`o`.`date_creation` AS `date_creation`,
|
- |
|
303 |
`o`.`date_modification` AS `date_modification`,`o`.`date_transmission` AS `date_transmission`,`i`.`id_image` AS `id_image`,
|
301 |
hauteur, largeur, i.date_prise_de_vue, i.mots_cles_texte AS i_mots_cles_texte, i.commentaire AS i_commentaire, i.nom_original,
|
304 |
`i`.`ce_utilisateur` AS `i_ce_utilisateur`,`i`.`mots_cles_texte` AS `i_mots_cles_texte`,`i`.`nom_original` AS `nom_original`,
|
302 |
i.date_creation AS i_date_creation, i.date_modification AS i_date_modification, i.date_liaison AS i_date_liaison, i.date_transmission AS i_date_transmission
|
305 |
`i`.`date_creation` AS `i_date_creation`,`i`.`date_modification` AS `i_date_modification`
|
303 |
FROM tb_cel.cel_obs AS o
|
306 |
FROM (`tb_cel_test`.`cel_obs` `o`
|
304 |
INNER JOIN tb_cel.cel_images AS i ON (o.id_observation = i.ce_observation )
|
307 |
JOIN `tb_cel_test`.`cel_images` `i` ON ((`o`.`id_observation` = `i`.`ce_observation`)))
|
305 |
WHERE o.transmission = '1';
|
308 |
WHERE (`o`.`transmission` = '1');
|
Line 306... |
Line 309... |
306 |
|
309 |
|
307 |
SET SQL_MODE=@OLD_SQL_MODE;
|
310 |
SET SQL_MODE=@OLD_SQL_MODE;
|
308 |
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
311 |
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|