Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos".
upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos".
upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos".
upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum".
upgrade now! [54.2] (what's this?)
moodle-requete
This is an old revision of the document!
Requêtes utiles
Les cours sur lesquels est inscrit un utilisateur avec son rôle dans le cours
SELECT c.id, c.shortname, c.fullname, u.id, u.username, u.firstname, u.lastname, r.shortname as 'role' From mdl_user as u join mdl_user_enrolments ue on ue.userid=u.id AND u.id=18434 join mdl_enrol en on ue.enrolid=en.id join mdl_role_assignments ra on u.id=ra.userid join mdl_role r on ra.roleid=r.id join mdl_context cx on cx.id = ra.contextid and cx.contextlevel = 50 JOIN mdl_course c ON c.id = cx.instanceid AND en.courseid = c.id; AND u.id=18434;
moodle-requete.1668527319.txt.gz · Last modified: 2023/09/28 12:26 (external edit)