mysql中的删除语法错误_mysql – EXPLAIN中的SQL语法错误
我試圖讓一個解釋命令在
mysql中工作.我正在嘗試解決此刪除查詢的性能問題:
DELETE FROM boost_cache_relationships
WHERE base_dir = 'cache/normal/www.dane101.com'
AND page_callback = 'node'
AND page_type = 'story'
AND page_id = '2891';
此查詢是SHOW FULL PROCESSLIST命令的輸出.
我知道EXPLAIN不能用于刪除,所以我復制它并用SELECT替換DELETE來提供以下內容:
explain select
FROM boost_cache_relationships
WHERE base_dir = 'cache/normal/www.dane101.com'
AND page_callback = 'node'
AND page_type = 'story'
AND page_id = '2891';
當我按Enter鍵時,mysql給我一條錯誤消息,告知這是無效的SQL:
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near ‘FROM boost_cache_relationships WHERE base_dir =
‘cache/normal/www.dane101.com’ A’ at line 1
我究竟做錯了什么?
總結
以上是生活随笔為你收集整理的mysql中的删除语法错误_mysql – EXPLAIN中的SQL语法错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: if函数 字体自动标红_发喜糖!REPT
- 下一篇: linux cmake编译源码,linu