答案 0 :(得分:7)
使用
SELECT DISTINCT
app
, STUFF(
(SELECT ',' + dev_language
FROM
tbl_apps a
INNER JOIN tbl_appsys ON a.app_pk = tbl_appsys.app_pk
INNER JOIN tbl_appsys_dev_language ON tbl_appsys.appsys_pk = tbl_appsys_dev_language.appsys_pk
INNER JOIN tbl_dev_language ON tbl_appsys_dev_language.dev_language_pk = tbl_dev_language.dev_language_pk
WHERE a.app = tbl_apps.app
FOR XML PATH(''))
,1,1,'')
FROM
tbl_apps
INNER JOIN tbl_appsys ON tbl_apps.app_pk = tbl_appsys.app_pk
INNER JOIN tbl_appsys_dev_language ON tbl_appsys.appsys_pk = tbl_appsys_dev_language.appsys_pk
INNER JOIN tbl_dev_language ON tbl_appsys_dev_language.dev_language_pk = tbl_dev_language.dev_language_pk
以下内容将为您提供“边距”
var chart = new Chart(ctx).Line(data);