【急】请大神分别对这两条语句的效率进行说明么?。

select id, Count(*) from tb group by id having count(*)>1
select*from(select count(ID) as count from table group by ID)T where T.count>1

<pre t="code" l="cpp">#include<stdio.h>

int main(void)
{
int a, b;
char c;
printf("请输入两个数:");
scanf("%d %d", a, b);
getchar();
printf("请输入你需要的运算法则:");
scanf("%c",c);

switch (c)
{
case '+':
printf("%d+%d = %d", a, b, a+b);
break;
case '-':
printf("%d-%d = %d", a, b, a-b);
break;
case '*':
printf("%d*%d = %d", a, b, a*b);
break;
case '/':
printf("%d/%d = %d", a, b, a/b);
break;
default:
printf("输入的符号有错!");
break;
}
return 0;
}
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

大家正在搜

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网