V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2014-10-28 10:51:39 +08:00 · 3202 次点击
    这是一个创建于 3468 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看了webpy的cookbook,感觉webpy只能通过db.query执行原生的sql,没有比较方便的方法。是不是只能配合sqlalchemy使用,才能比较方便?
    4 条回复    2014-10-29 10:02:48 +08:00
    lincanbin
        1
    lincanbin  
       2014-10-28 11:46:48 +08:00
    db.query写Join语句会有困难吗?
    如果多次使用的话可以自己封装一个。
    larkifly
        2
    larkifly  
    OP
       2014-10-28 16:01:10 +08:00
    @lincanbin 不是困难,感觉基本上就是原生的sql啊
    spark
        3
    spark  
       2014-10-29 09:28:51 +08:00
    想要ORM就上SQLAlchemy啊
    larkifly
        4
    larkifly  
    OP
       2014-10-29 10:02:48 +08:00
    @spark webpy配合SQLAlchemy用感觉怎么样?可定制性怎么样?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2870 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:54 · PVG 19:54 · LAX 04:54 · JFK 07:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.