我在MySQL中填充了一个表,如下所示。现在,我需要按记录的排序顺序选择记录的行号。例如,以'c'开头的单词行数应为4。FROM dict ORDER BY words) d,(SELECT @rownum:=0) r WHERE d.words LIKE CONCAT('c','%')任何帮助都是非常感谢的。谢谢。
如何在结果中使用@row_number like position row:s2.priority AS `priority`, LEFT JOIN servers_services ss ON (s.id = ss.server_id)
LEFT JOIN service s2 ON (s2.id = ss.service_