zoukankan      html  css  js  c++  java
  • 网盘文件被下载过的记录查询脚本(亲测有效)

    SELECT l.CN_S_OPERATOR_ID AS 登录名, l.CN_S_OPERATOR AS 用户名, l.CN_T_OPERATING AS 下载时间, d.CN_S_NAME AS 文件名, d.CN_S_VERSION AS 版本
    FROM (
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_0
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_1
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_2
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_3
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_4
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_5
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_6
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_7
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_8
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'

    UNION ALL
    SELECT CN_S_DOC_ID, CN_S_OPERATOR_ID, CN_S_OPERATOR, CN_T_OPERATING
    FROM OI_DMS_DOC_LOG_9
    WHERE CN_T_OPERATING >= '2010-1-1'
    AND CN_S_OPERATE_TYPE = '下载'
    ) l

    INNER JOIN OI_DMS_DOC d ON d.CN_S_ID = l.CN_S_DOC_ID
    ORDER BY d.CN_S_NAME

  • 相关阅读:
    如何理解javaScript对象?
    web移动端开发技巧与注意事项汇总
    javaScript基础语法(上)
    css选择器的使用详解
    css属性兼容主流浏览器
    前端开发必备站点汇总
    Highchart基础教程-图表配置
    Highchart基础教程-图表的主要组成
    Highcharts入门小示例
    Highcharts配置
  • 原文地址:https://www.cnblogs.com/mobox/p/14873966.html
Copyright © 2011-2022 走看看