日期:2014-05-17  浏览次数:20996 次

请教一个关于update中单引号问题
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带单引号,所以这个语句执行不了,求大侠解救
SQL UPDATE SQL中单引号问题

------解决方案--------------------
Select 'test''s' from dual;

将Buyer's 写成 'Buyer''s'用
------解决方案--------------------
拼接其它字符串
------解决方案--------------------

------解决方案--------------------

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
------解决方案--------------------