【单选题】
下列条件语句中输出结果与其他语句不同的是。
①
if(a==0)printf(“%d\n”,x);else printf(“%d\n”,y);
②
if(a==0)printf(“%d\n”,y);else printf(“%d\n”,x);
③
if(a!=0)printf(“%d\n”,x);elseprintf(“%d\n”,y);
④
if(a)printf(“%d\n”,x); else printf(“%d\n”,y);
【单选题】
下列查询语句中,错误的是( )。
①
SELECT Sno, COUNT(*) FROM SC GROUP BY Sno
②
SELECT Sno FROM SC GROUP BY Sno WHERE COUNT(*) > 3
③
SELECT Sno FROM SC GROUP BY Sno HAVING COUNT(*) > 3
④
SELECT Sno FROM SC GROUP BY Sno