V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lixuda
V2EX  ›  Django

django mysql join 如何操作?

  •  
  •   lixuda · Jan 30, 2021 · 2776 views
    This topic created in 1924 days ago, the information mentioned may be changed or developed.

    不用数据库外键的情况下? 只能通过这个方式吗? models.ForeignKey(model,on_delete=models.CASCADE,db_constraint=False)

    2 replies    2021-01-30 23:08:01 +08:00
    saulshao
        1
    saulshao  
       Jan 30, 2021
    一直都是这样的。
    你也可以自己写 SQL 脚本
    sazima
        2
    sazima  
       Jan 30, 2021
    不支持 join
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:34 · PVG 14:34 · LAX 23:34 · JFK 02:34
    ♥ Do have faith in what you're doing.