• paip.基于navicate mysql的自动化报表工具总结


    paip.基于navicate mysql的自动化报表工具总结

    需要对信用卡数据分类统计。显示一个饼图。。。
    用EXCEL比较麻烦,一旦数据库变动就要重新导出..使用PHP代码吧,还是比较麻烦,最好是自动化的现成的工具最好了..看起来navicate的报表工具不错...

    测试了一哈,就是好运阿,写个sql,绑定到饼图..几分钟搞定..

    a.新的>>查询设计器,>>直接inpput sql...
    b.设计视图>>中间工具栏>>数据库图表(note:左的工具栏还有个普通的图表图标,不能加载数据,只能手动),,一定要选择中间的数据库图表,然后edit>>serile>>data source>>data pip...选择数据树...就绑定兰..

    作者Attilax 艾龙, EMAIL:1466519819@qq.com
    来源:attilax的专栏
    地址:http://blog.csdn.net/attilax

    /////////////////sql如下.
    SELECT
        SUM(moneyx) AS m,
        IFNULL(clsx, c.cls) clss
    FROM
        cyar2013 c
    LEFT JOIN cyar_share ON c.cls = cyar_share.cls
    WHERE
        1 = 1
    AND YEAR (datex) = 2013
    AND c.cls NOT IN (
        'atm+',
        'cashout',
        'cyiunwe+',
        'del',
        'feolintwei+',
        'insure+',
        'mt+'
    )
    GROUP BY
        clss
    ORDER BY
        m DESC
        
        
        
            bs    bs
    bus    bs
    mtr    bs
    taxi    bs
    ch    ch
    chtool    ch
    shwei    ch
    furnt    furnt
    home    furnt
    men    furnt
    gas    gas
    gs    gas
    ckssf    int
    fcssf    int
    int    int
    itrst    int
    sms    int
    isheo    isheo
    isho    isheo
    bls    other
    book    other
    dvd    other
    guren    other
    none    other
    o    other
    pc    pcNfix
    pcfix    pcNfix
    feolin    rent
    htl    rent
    rent    rent
    dsuchae    rentcar
    rentcar    rentcar
    gum    teo
    teo    teo
  • 相关阅读:
    Direct hosting of SMB over TCP/IP
    学习 Linux,302(混合环境): 概念
    脚本
    linux加入windows域
    Internet传输协议-TCP
    vCenter Single Sign On 5.1 best practices
    Zoning and LUN Masking
    Fiber Channel SAN Storage
    How to check WWN and Multipathing on Windows Server
    在Windows中监视IO性能
  • 原文地址:https://www.cnblogs.com/attilax/p/5964071.html
Copyright © 2020-2023  润新知