Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
base:interrogation [2012/02/23 10:04] balleydc |
base:interrogation [2025/10/20 16:02] (Version actuelle) catherine.balleydier@grenoble-inp.fr [Suppression d'une exclusion] |
||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Recherche dans la base ====== | ====== Recherche dans la base ====== | ||
| + | * [[base:structure|Description de la base]] | ||
| ===== Recherche des utilisateurs étant en erreur ===== | ===== Recherche des utilisateurs étant en erreur ===== | ||
| - | mysql> select user_subscriber,list_subscriber,bounce_subscriber from subscriber_table where bounce_subscriber != 'NULL'; | + | mysql> select user_subscriber,list_subscriber,bounce_subscriber from subscriber_table |
| + | where bounce_subscriber != 'NULL' order by list_subscriber; | ||
| Pour les listes d'une école : (direction.ecole, scolarite.ecole, ....) | Pour les listes d'une école : (direction.ecole, scolarite.ecole, ....) | ||
| Ligne 11: | Ligne 12: | ||
| Supprimer les erreurs | Supprimer les erreurs | ||
| - | mysql> update subscriber_table set bounce_subscriber = 'NULL' and bounce_score_subscriber = 'NULL' | + | mysql> update subscriber_table set bounce_subscriber =NULL and bounce_score_subscriber =NULL |
| where bounce_subscriber != 'NULL' and list_subscriber = 'xxxx' ; | where bounce_subscriber != 'NULL' and list_subscriber = 'xxxx' ; | ||
| Ligne 18: | Ligne 19: | ||
| mysql> select user_subscriber, list_subscriber from subscriber_table where reception_subscriber ='nomail' ; | mysql> select user_subscriber, list_subscriber from subscriber_table where reception_subscriber ='nomail' ; | ||
| + | mysql> select user_subscriber from subscriber_table where reception_subscriber ='nomail' and list_subscriber = 'liste' ; | ||
| ===== Mettre un abonné en nomail pour toutes ses listes ===== | ===== Mettre un abonné en nomail pour toutes ses listes ===== | ||
| Ligne 42: | Ligne 44: | ||
| mysql> select list_admin from admin_table where role_admin='editor' and user_admin='toto@grenoble-inp.fr'; | mysql> select list_admin from admin_table where role_admin='editor' and user_admin='toto@grenoble-inp.fr'; | ||
| - | |||
| Ligne 56: | Ligne 57: | ||
| where role_admin='owner' and list_admin in | where role_admin='owner' and list_admin in | ||
| (select list_subscriber from subscriber_table where included_subscriber='1'); | (select list_subscriber from subscriber_table where included_subscriber='1'); | ||
| - | |||
| - | |||
| - | ===== Modification des adresses des abonnés ===== | ||
| - | |||
| - | modifier les adresses des abonnés : remplacer inpg.fr par grenoble-inp.fr (script terminé) | ||
| Ligne 68: | Ligne 64: | ||
| + | ===== Affichage résultat avec des valeurs uniques ===== | ||
| + | |||
| + | mysql> select distinct robot_list from list_table; | ||
