【发布时间】:2012-04-13 11:34:28
【问题描述】:
我想在 oracle 表中插入带有特殊字符的数据。 我的代码是这样的-:
$query1 ="INSERT INTO sample(po_number , created_at , customer_firstname , customer_lastname , customer_email ,
shipping_description , ship_to_firstname, ship_to_lastname, ship_to_company, ship_to_street, ship_to_city, ship_to_country_id, ship_to_postcode, ship_to_telephone, increment_id) VALUES(".$result_str_order.")";
where $result_str_order = '100','21-Mar-2011','Sam','Right','sam.right@sasmple.com','Flight','Samy',
'RTR','SR INC','222,M.G.Bank's-Pipeline/Rd','Newyork','US','411230','999856230','20000507'
现在,如果是 ship_to_street,我需要插入 222,M.G.Bank's-Pipeline/Rd 但是它包含特殊字符,例如,',-,/等。所以如何在oracle db中插入特殊字符?
【问题讨论】:
-
您问的是 PHP 还是 Oracle DB?如果是 Oracle,那么您需要在需要
'的任何地方使用''
标签: php oracle insert oracle11g special-characters