LoginSignup
x9jdzhcc72mxib2azgcyo
@x9jdzhcc72mxib2azgcyo

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

django 投げやり質問失礼します。

Q&AClosed

解決したいこと

djangoをvisual studioで動かしています。
そこで、以下のコードがどういう意図をもっているか簡単でいいので日本語で説明してほしいです。
投げやりで申し訳ございません。

# DBからデータを取得しセッション変数へ格納する
    def FetchDataFromDB(self):
from account as a
left join (
  select ar.account_id,
         string_agg(r.name, ', ') as str
    from account_role as ar
  left join role as r on r.role_id = ar.role_id
  group by ar.account_id) as roles
on roles.account_id = a.account_id
where system_administrator = FALSE '''
0

Your answer might help someone💌