安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

单选题在mysql中有一张表,内容如下:mysql> select * from t1; c1 5, NULL, 5, NUL, 5, 5 rows in set (0.00 sec) 请给出以下sql语句的结果 mysql> select avg(c1) as avg num from t1; mysal> select count(*) from t1; mysal> select count(c1) from t1;

  • 日期: 2027-06-13
  • 标签: 教育

答案:

mysql> select avg(c1) as avg_num from t1; 结果为:avg_num为5.0000

mysql> select count() from t1; 结果为:count()为5

mysql> select count(c1) from t1; 结果为:count(c1)为4

单选题在mysql中有一张表,内容如下:mysql> select * from t1;
c1
5,
NULL,
5,
NUL,
5,

5 rows in set (0.00 sec)
请给出以下sql语句的结果
mysql> select avg(c1) as avg num from t1;
mysal> select count(*) from t1;
mysal> select count(c1) from t1;

原文地址: https://www.cveoy.top/t/topic/rHa 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 研究弗洛姆对当下中国的意义
  • 下一篇: 写一个mininet的拓扑代码,包含两个主机,四个路由器,每个主机与两个路由器相连,路由器1和2相连,路由器3和4相连,路由器中配置转发规则,不使用远程控制器

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2