你好我对android编程比较新,我遇到了问题。当我在模拟器上运行我的应用程序并按下Datepicker时,应用程序运行顺畅但当我在我的Android设备上运行它时它停止工作。这是代码
SELECT a.id as id, apps + subapps as total
FROM
(
SELECT
P.PlayerID AS id, COUNT(A.AppearancePlayerID) AS apps
FROM
sports_seasons S
LEFT OUTER JOIN sports_players P ON P.PlayerID = S.SeasonPlayerID AND S.SeasonID = '$seasonid'
LEFT OUTER JOIN sports_appearances A ON A.AppearancePlayerID = S.SeasonPlayerID AND A.AppearanceSeasonID = '$seasonid'
WHERE
P.PlayerID != ''
GROUP BY P.PlayerID
) as a
INNER JOIN
(
SELECT
P.PlayerID AS id, COUNT(SU.SubstitutionPlayerIDIn) AS subapps
FROM
sports_seasons S
LEFT OUTER JOIN sports_players P ON P.PlayerID = S.SeasonPlayerID AND S.SeasonID = '$seasonid'
LEFT OUTER JOIN sports_substitutions SU ON SU.SubstitutionPlayerIDIn = S.SeasonPlayerID AND SU.SubstitutionSeasonID = '$seasonid'
WHERE
P.PlayerID != ''
GROUP BY P.PlayerID
) as b on a.id = b.id
ORDER BY a.id;
如果有人能向我解释为什么会发生这种情况,我将不胜感激,以便将来可以避免这个错误