我试图在 SQL Server CE 数据库中执行此操作,但数据库引擎不断报告错误。
SELECT C.guid, C.name, C.updated,
C.hddsize, C.hddavailable, C.hddfree,
C.ramsize, C.profiles, C.cpu,
(SELECT COUNT(D.id) AS numprogs
FROM ComputerData AS D
WHERE D.computer_id = C.id) AS numprograms
FROM Computers AS C;
有人告诉我 SQL Server CE 支持子查询。有什么我做错了吗?