我想在数据库中发布内容,但每当我提出“我需要将其替换为"1
或select t1.product_name Name, t1.product_price Price from
(select product_name, product_price from shop
where product_name like 'cc%' or product_name like 'de%'
order by product_name desc) t1
union
select t2.* from
( select product_name, product_price from shop
where product_name like 'bb%'
order by product_price ) t2
union
select t3.* from
( select product_name, product_price from shop
where ( product_name not like 'cc%') and ( product_name not like 'de%')
and (product_name not like 'bb%')
order by product_name, product_price) t3 ;
时。
我不知道它是如何运作的,有什么建议吗?
答案 0 :(得分:0)
我刚刚搜索了HTML code for "
并得到了:
Encoded HTML Entity ("): "
请用"
替换"
s。要使用Javascript自动执行此操作,您可以执行以下操作:
var postData = 'this is my " test " data';
postData = postData.replace('"','"'); //this is my " test " data