0
嗨我想寫這種類型的MySQL查詢。如何編寫這種類型的mysql查詢?
select image_path, replace(replace(replace(description,\'/images/\',image_path),\'<![CDATA[\',\'\'),\']]>\',\'\') description from test_image_master where ...
如果我從PHP的echo這個查詢它顯示像這樣
select image_path, replace(replace(replace(description,'/images/',image_path),'','') description from test_image_master where ...
缺少<![CDATA[
和]]>
。所以查詢不能正常工作。
我使用的是php和mysql。
我該如何解決這個問題。
請幫幫我。
您的目標是什麼?您需要以何種方式修復數據庫結果?你從哪裏查詢這些東西? –