zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Vue 项目刷新当前页面
    Vue 使用 vue-echarts 图表插件
    Vue 路由跳转、传参、接参四种方式
    webpack 之 proxyTable 设置跨域
    二元函数的梯度下降法求解
    2020暑期华为勇敢星实习总结
    时间序列预测算法-ARIMA算法
    航天一院介绍
    腾讯数据分析笔试
    C# Fleck的WebSocket使用
  • 原文地址:https://www.cnblogs.com/attilax/p/5964071.html
Copyright © 2011-2022 走看看