Guest User

Untitled

a guest
Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. SELECT "accounts_userprofile"."id", "accounts_userprofile"."user_id", "accounts_userprofile"."photo", "accounts_userprofile"."unread_pms", "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "accounts_userprofile" INNER JOIN "auth_user" ON ("accounts_userprofile"."user_id" = "auth_user"."id") WHERE "accounts_userprofile"."user_id" IN (1, 6, 7, 8)
  2.  
  3. // takie dla kazdego user id sie generuje
  4.  
  5. SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 1
Add Comment
Please, Sign In to add comment