推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
larkifly
V2EX  ›  Python

webpy 如何多表联合查询

  •  
  •   larkifly · Oct 28, 2014 · 3931 views
    This topic created in 4354 days ago, the information mentioned may be changed or developed.
    看了webpy的cookbook,感觉webpy只能通过db.query执行原生的sql,没有比较方便的方法。是不是只能配合sqlalchemy使用,才能比较方便?
    4 replies  •  2014-10-29 10:02:48 +08:00
    lincanbin
        1
    lincanbin  
       Oct 28, 2014
    db.query写Join语句会有困难吗?
    如果多次使用的话可以自己封装一个。
    larkifly
        2
    larkifly  
    OP
       Oct 28, 2014
    @lincanbin 不是困难,感觉基本上就是原生的sql啊
    spark
        3
    spark  
       Oct 29, 2014
    想要ORM就上SQLAlchemy啊
    larkifly
        4
    larkifly  
    OP
       Oct 29, 2014
    @spark webpy配合SQLAlchemy用感觉怎么样?可定制性怎么样?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:51 · PVG 07:51 · LAX 16:51 · JFK 19:51
    ♥ Do have faith in what you're doing.