› 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
insert000
V2EX  ›  MySQL

求指教一条 sql

  •  
  •   insert000 · Apr 24, 2019 · 4535 views
    This topic created in 2719 days ago, the information mentioned may be changed or developed.

    SELECT sum(a_key) as a,sum(b_key) as b ,(a+b) as c form demo;
    如上所述,正式环境有几十个字段,牵扯到各种相加排重,字段别名以后不能使用。求问有什么好的处理办法

    Raymon111111
        1
    Raymon111111  
       Apr 24, 2019
    如果可以, 全部捞出来在程序里做.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   796 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:32 · PVG 06:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.