update HT_RQMT set SEC_PAY_CONTENT =
'
Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer's Bank has received the following documents and found them in order
1)
Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer's Bank has received the following documents and found them in order
Four (4) originals of Commercial invoice, covering 10% of payment basis;

where RQMT_ID='12345679'因为字符串中有两个Buyer's带单引号,所以这个语句执行不了,求大侠解救SQLUPDATESQL中单引号问题

解决方案 »

  1.   

    Select 'test''s' from dual;将Buyer's 写成 'Buyer''s'用||拼接其它字符串
      

  2.   


    update HT_RQMT set SEC_PAY_CONTENT =
    '
    Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer''s Bank has received the following documents and found them in order
    1)
    Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer''s Bank has received the following documents and found them in order
    Four (4) originals of Commercial invoice, covering 10% of payment basis;

    where RQMT_ID='12345679';or update HT_RQMT set SEC_PAY_CONTENT =
    '
    Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer||''||s Bank has received the following documents and found them in order
    1)
    Ten percent (10%) of payment basis, shall be paid by the Buyer to the Seller after the date of completion of test run and upon the Buyer||''||s Bank has received the following documents and found them in order
    Four (4) originals of Commercial invoice, covering 10% of payment basis;

    where RQMT_ID='12345679';