这是我的子查询,但它不工作:的Sql子查询不工作
SELECT CommitmentLog.app_id, CommitmentLog.CommitAmt, CommitmentLog.CommitDate,
CommitmentLog.status, CommitmentLog.ConfirmDate, Appreg.uid, Appreg.SpillBy,
Appreg.spill, Appreg.Email, Appreg.pass, Appreg.intro_id, Appreg.app_id AS Expr1
FROM CommitmentLog
INNER JOIN Appreg ON CommitmentLog.app_id = Appreg.app_id
where Appreg.app_id =
(
SELECT dbo.UIDFromApp_ID(Intro_id) as 'SponsorUserID', [app_id],[uid], [app_name], [Side], [doj]
FROM [v_Appreg]
WHERE ([Intro_id] = 1496)
)
提示错误:您正在使用MSSQL
Msg 116, Level 16, State 1, Line 4
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
是sql-server还是mysql? – Jens
子查询不适用于多个领域...尝试单个字段 – sumit