ãµãã¯ã¨ãªã®ä»¶ Blog:1 Entry:n ã¿ãããªã¢ãã«ã®ãªã¬ã¼ã·ã§ã³ãããã¨ãããã¡ãã£ã¨éããã©ã print(Hoge.objects.filter(entry__in=blog.entry_set.all()).query) æ¬ä¼¼çãªã¯ã¨ãªã¯ãããªæãã SELECT `entry`.`id`, `entry`.`ctime`, `entry`.`utime`, `entry`.`name`, FROM `entry` WHERE (`entry`.`blog_id` IN (SELECT U0.`id` FROM `blog` U0 WHERE U0.`blog_id` = 313 ) ) ãããåç´ã« __in ã 㨠SELECT * FROM hoge WHERE moge IN (a, b, c) ã ã¨æããã©ãDjango ã® ORM ãçºè¡ãã¦ãããªã¬ã¼ã·ã§ã³ãã¾ã
{{#tags}}- {{label}}
{{/tags}}