我已经在MySQL这个MySQL命令有什么错误?
SELECT *,(select lat from node where id=node_id)as lat,(select lng from node where id=node_id)as lng from tag,node WHERE 1 limit 5
,但我得到这个错误信息下面的查询..
#1064 - 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 '' at line 1
有什么问题?
错误消息与您发布的代码不符。 SQL语句中没有````,但错误消息指的是单引号。此外,您正在'标签'和'节点'之间创建笛卡尔产品。你确定你想要吗?为什么你用愚蠢的`WHERE 1`? – 2011-02-11 19:03:09
@a_horse_with_no_name:这些单引号是MySQL错误消息的默认部分。尝试运行`SELECT * FROM;` – Mchl 2011-02-11 19:07:23