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