H, 我有一个列表 Booklist ,现在我想为每个元素迭代它,我这样做但是它不正确所以有人建议怎么做?
Book::Notes(string booklist)
{
for(int i = 0; i < booklist.Size(); i++)
{
string B1= booklist[i];
}
答案 0 :(得分:1)
SELECT
[p.ProjectId],
SUM(pf.size),
COUNT(pr.ServerGroupId) AS [UnRestrictedFacility],
CASE
WHEN COUNT(ps.CreatedBy) > 0
THEN 1
ELSE 0
END
FROM
Project p
INNER JOIN
ProjectFile pf on pf.Id = p.tId
INNER JOIN
ProjectPartlink ppl ON pf.ProjectPartlinkId = ppl.ProjectPartlinkid
AND ppl.ProjectId = p.projectid
INNER JOIN
ProjectRestriction pr ON pr.projectid = p.projectid
INNER JOIN
ProjectPreseed ps ON ps.projectid = p.projectid
WHERE
p.projectid = @projectid