SELECT * FROM user WHERE role IN (SELECT id FROM role WHERE role='管理员')
SELECT u.* FROM user u WHERE NOT EXISTS (SELECT r.id FROM role r WHERE r.role='管理员' AND r.id = u.role)
SELECT * FROM user WHERE role IN (SELECT id FROM role WHERE role='管理员')
SELECT u.* FROM user u WHERE NOT EXISTS (SELECT r.id FROM role r WHERE r.role='管理员' AND r.id = u.role)