› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
clino
V2EX  ›  MySQL

菜鸟问题:能做到某个字段的内容是另一个表的查询结果的记录数吗?

  •  
  •   clino ·
    zhangchunlin · Dec 15, 2011 · 5024 views
    This topic created in 5404 days ago, the information mentioned may be changed or developed.
    例如我想做到一个表的某个字段的内容是另一个表的某个字段为True的查询结果的记录数,能做到吗?
    因为不想显示的时候每个都去查询.
    数据库方面目前完全是菜鸟阿.
    谢谢!
    3 replies  •  1970-01-01 08:00:00 +08:00
    chloerei
        1
    chloerei  
       Dec 15, 2011
    视图?
    clino
        2
    clino  
    OP
       Dec 15, 2011
    @chloerei 看起来应该是这个,先研究一下
    clino
        3
    clino  
    OP
       Dec 15, 2011
    哦,其实我现在使用 sqlachemy 在操作数据库,orm这种东东似乎不支持视图,那还是用笨办法好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   871 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.