SELECT
    c.transfer_amount
FROM
    pdf_inf a
LEFT JOIN pdf_grantor_pgor_infos b ON a.uuid = b.pdf_id
AND b.sys_status = 1
LEFT JOIN pdf_dne c ON b.uuid = c.biz_id
AND c.sys_status = 1
WHERE
    (
        REPLACE (
            REPLACE (
                b.grantor_pledgor_name,
                '(',
                ''
            ),
            ')',
            ''
        ) LIKE '%大家(成都)有限公司%'
        OR REPLACE (
            REPLACE (
                b.grantor_pledgor_name,
                '',
                '('
            ),
            '',
            ')'
        ) LIKE '%大家成都)有限公司%'
    )
AND a.sys_status = 1

AND (replace(replace(b.grantor_pledgor_name,'(','('),')',')') like ? or replace(replace(b.grantor_pledgor_name,'(','('),')',')') like ?)

 

mysql  解决全角半角 问题

 

 解决 全角半角问题 可直接在 sql  层面 处理,如果 是多个的话,则 循环 一个一个进行匹配

 

相关文章:

  • 2021-10-23
  • 2022-02-18
  • 2021-12-17
  • 2021-09-01
  • 2021-08-19
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-10-11
  • 2021-10-29
  • 2022-12-23
  • 2021-07-21
  • 2022-01-10
相关资源
相似解决方案