包装它们并使用子查询:
SELECt(SELECT COUNT(*) FROM Toys WHERe little_kid_id = 900)+(SELECt COUNT(*) from Games WHERe little_kid1 = 900 OR little_kid2 = 900 OR little_kid3 = 900)AS SumCount
瞧!
欢迎分享,转载请注明来源:内存溢出
包装它们并使用子查询:
SELECt(SELECT COUNT(*) FROM Toys WHERe little_kid_id = 900)+(SELECt COUNT(*) from Games WHERe little_kid1 = 900 OR little_kid2 = 900 OR little_kid3 = 900)AS SumCount
瞧!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)