Line 1... |
Line -... |
1 |
CREATE VIEW del_image AS
|
- |
|
2 |
SELECT id_image, ce_utilisateur, hauteur, largeur, date_prise_de_vue, mots_cles_texte, commentaire,
|
1 |
-- TODO : Voir comment remplacer le test REGEXP par quelque chose de plus simple.
|
3 |
nom_original, date_modification, date_creation, publiable_eflore
|
- |
|
4 |
FROM cel.cel_images;
|
- |
|
Line 5... |
Line 2... |
5 |
|
2 |
|
6 |
CREATE VIEW del_obs_images AS
|
3 |
CREATE VIEW del_utilisateur AS
|
7 |
SELECT ce_image, ce_utilisateur, ce_observation, date_liaison
|
4 |
SELECT id_utilisateur, prenom, nom, courriel, mot_de_passe, licence_acceptee
|
Line 8... |
Line 5... |
8 |
FROM cel.cel_obs_images;
|
5 |
FROM tb_cel.cel_utilisateurs;
|
9 |
|
6 |
|
- |
|
7 |
CREATE VIEW del_observation AS
|
10 |
CREATE VIEW del_observation AS
|
8 |
SELECT id_observation, ce_utilisateur, nom_sel, nom_sel_nn, nom_ret, nom_ret_nn, nt, famille,
|
11 |
SELECT id_observation, ce_utilisateur, nom_sel, nom_sel_nn, nt, famille, ce_zone_geo, zone_geo, lieudit,
|
9 |
ce_zone_geo, zone_geo, lieudit, station, milieu,
|
12 |
station, milieu, date_observation, mots_cles_texte, commentaire, transmission, date_creation,
|
10 |
date_observation, mots_cles_texte, commentaire,
|
- |
|
11 |
date_creation, date_modification, date_transmission
|
- |
|
12 |
FROM tb_cel.cel_obs
|
Line 13... |
Line -... |
13 |
date_modification, date_transmission
|
- |
|
14 |
FROM cel.cel_obs;
|
- |
|
15 |
|
- |
|
16 |
CREATE VIEW del_utilisateur AS
|
13 |
WHERE transmission = '1'
|
- |
|
14 |
AND ce_utilisateur REGEXP '^[[:digit:]]+$';
|
- |
|
15 |
|
- |
|
16 |
CREATE VIEW del_obs_images AS
|
- |
|
17 |
SELECT oi.id_image, oi.id_utilisateur, oi.id_observation, oi.date_liaison
|
- |
|
18 |
FROM tb_cel.cel_obs_images AS oi
|
- |
|
19 |
INNER JOIN tb_cel.cel_obs AS o ON (oi.id_observation = o.id_observation)
|
- |
|
20 |
WHERE o.transmission = '1'
|
- |
|
21 |
AND oi.id_utilisateur REGEXP '^[[:digit:]]+$';
|
- |
|
22 |
|
- |
|
23 |
CREATE VIEW del_image AS
|
- |
|
24 |
SELECT i.id_image, i.ce_utilisateur, i.hauteur, i.largeur, i.date_prise_de_vue, i.mots_cles_texte,
|
- |
|
25 |
i.commentaire, i.nom_original, i.date_modification, i.date_creation, i.publiable_eflore
|
- |
|
26 |
FROM tb_cel.cel_images AS i ON (i.id_image = oi.id_image)
|
- |
|
27 |
INNER JOIN tb_cel.cel_obs_images AS oi ON (oi.id_observation = o.id_observation)
|
- |
|
28 |
INNER JOIN tb_cel.cel_obs AS o
|
17 |
SELECT id_utilisateur, prenom, nom, courriel, mot_de_passe, licence_acceptee
|
29 |
WHERE o.transmission = '1'
|