mysql 解决全角半角 问题


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 ?)

 

 

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM