count是统计符合条件的纪录的聚合函数。这里order by 无效SELECT COUNT(*) AS rcnt FROM a_table a,b_table b,c_table c WHERE (a.text LIKE '%test%' or b.title LIKE '%test%')
SELECT COUNT(*) AS rcnt FROM a_table a,b_table b,c_table c WHERE (a.text LIKE '%test%' or b.title LIKE '%test%') ORDER BY c.sign DESC,b.title asc,a.text desc 这样order by应该是有效的吧.如不想要后两项可去掉,且c.sign是假设sign是c_table中的字段
这样order by应该是有效的吧.如不想要后两项可去掉,且c.sign是假设sign是c_table中的字段