zoukankan      html  css  js  c++  java
  • sql中的CONCAT函数运用实例1

    1 第一个例子

    2 第二个例子 select a.*,b.name as repayment_type_value,c.name as status_value, d.product_name, CONCAT(a.duration ,(case a.duration_type when 1 then '天' when 2 then '周' when 3 then '月' when 4 then '年' end)) as jkqx from loan_borrow a , (select * from SYS_DICTIONARIES where P_BM = 'repayment_type') b, (select * from SYS_DICTIONARIES where P_BM = 'status_s') c, loan_product d where b.BIANMA = a.repayment_type and c.BIANMA = a.status and a.product_id=d.product_id and a.rate >= #{pd.lastStart} and a.rate <= #{pd.lastEnd} and a.repayment_type=#{pd.repayment_type} and a.status=#{pd.status} 查询结果

  • 相关阅读:
    C#与JS实现 获取指定字节长度 中英文混合字符串 的方法
    CKFinder_AspDotNet_2.4 破解方法 去版权
    MVC3中如何输出富文本
    CKEditor与CKFinder整合 MVC3
    vue项目多页配置
    设备宽度
    h5前端项目常见问题汇总
    react分享
    javascript-复制
    vue开发笔记
  • 原文地址:https://www.cnblogs.com/zhaoblog/p/6780642.html
Copyright © 2011-2022 走看看