#2014在phpMyAdmin上运行查询时的同步命令

时间:2015-11-02 16:37:38

标签: mysql

我有一个类别表,其中包含(id,name,parent_categ) 我想选择具有子类别的类别(父类的根类别为空)

这是我的疑问:

SELECT M.`id`, M.`name`,(select S.`name` from `categories` AS S where M.`id` = S.`parent_categ` ) AS sub
FROM `categories` AS M
Group by M.`id`,M.`name`

为什么要给我这个错误?!!

2014 - 命令不同步;你现在不能运行这个命令

1 个答案:

答案 0 :(得分:0)

试试这个:

triple is (1,2,3)
triple is (2,3,4)
triple is (3,4,5)
tripleVariable is (1,"two","three")
相关问题