sql左链接查询

select u.id, u.name, u.login_name, u.password, u.org_id, u.avatar, u.description, u.built_in, u.sort, u.state, u.create_user_id, u.insert_time, u.update_time, u.memo, u.tenant_id, u.is_del, u.is_admin, u.update_user_id,o.name o_name from sys_user u left join sys_organization o on u.org_id = o.id where u.org_id in #{id}

你可能感兴趣的:(后端)