SELECT
PROJECTID, PROJECTNAME,
(SELECT
REPLACE(WM_CONCAT(PERSONNAME),',',',')
FROM
KY_ACHIEVEPERSON
WHERE
ACHIEVEITEMID=PROJECTID
order by ranking
) COMPLETPERSON
KY_PROJECT
注释:ranking是子表中的排序字段。
慕神8329975
相关分类