我想编写这种MySQL查询。
select image_path, replace(replace(replace(description,\'/images/\',image_path),\'<![CDATA[\',\'\'),\']]>\',\'\') description from test_image_master where ...
如果我从 php 回显这个查询,它会显示如下
select image_path, replace(replace(replace(description,'/images/',image_path),'','') description from test_image_master where ...
失踪<![CDATA[
和]]>
。因此查询无法正常工作。
我正在使用 php 和 mysql。
我该如何解决这个问题?
最佳答案
不会错过的。只是浏览器看不到,可以查看html源码。
关于mysql - 如何编写这样的mysql查询?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7750507/