V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
a476286557
V2EX  ›  Python

mysql 每次查 100 条数据,数据库名字可以用 user 代替.取的字段用 name 代替

  •  
  •   a476286557 · Sep 3, 2018 · 2348 views
    This topic created in 2793 days ago, the information mentioned may be changed or developed.
    用 SQLAlchemy 连接了数据库,因为库里有很多数据,想每次取 100 条数据里面的 name,应该怎么写呢?
    3 replies    2018-09-03 13:33:30 +08:00
    a476286557
        1
    a476286557  
    OP
       Sep 3, 2018
    数据库里面有很多很多条数据
    poxiaobbs
        2
    poxiaobbs  
       Sep 3, 2018 via Android
    limit ?
    lniwn
        3
    lniwn  
       Sep 3, 2018
    方法一,关键词:yield_per
    方法二,关键词:stream_results

    https://oaoa.me/2018/08/cjki5kprp0007zejv8oo60yw5/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:58 · PVG 01:58 · LAX 10:58 · JFK 13:58
    ♥ Do have faith in what you're doing.