数据库单选难度 3真题改编 · 2023
955. Mysql中表student_table(id,name,birth,sex),插入如下记录:
('1004' , '张三' , '2000-08-06' , '男');
('1005' , NULL , '2001-12-01' , '女');
('1006' , '张三' , '2000-08-06' , '女');
('1007' , ‘王五’ , '2001-12-01' , '男');
('1008' , '李四' , NULL, '女');
('1009' , '李四' , NULL, '男');
('1010' , '李四' , '2001-12-01', '女');
执行
select count(t1.birth) as c1
from (
select * from student_table where sex = '男' ) t1
right join
(select * from student_table where sex = '女') t2
on t1.birth = t2.birth and t1.name = t2.name ;
的结果行数是()?
练习本题 ›
数据库单选难度 3真题改编 · 2024
959. 在 MySQL 5.7(或更早)环境下,有两张使用以下命令创建的数据库表:
create table T(a INT, b char);
有几条查询语句如下所示:
语句1:
select a, b from T where a = 10
union all
select a, b from T where c = "20"
语句2:
select a, b from T where a = 10
union
select a, b from T where c = "20"
语句3:
select a, b from T group by a, b
语句4:
select a, b from T group by a, b order by null;
以下说法正确的是?
练习本题 ›
算法与数据结构哈希单选难度 3真题改编 · 2024
978. 已知一组关键字为 {21, 32, 43, 57, 61, 74, 85},采用链地址法处理冲突,散列表是一个下标从0开始的长度为12的一维数组,散列函数为 H(key) = key MOD 12,则装填因子 α 是()。
练习本题 ›
算法与数据结构栈单选难度 3真题改编 · 2024
994. 入栈序列是:1,2,3,4,5,6出栈序列是:5,4,6,3,2,1,则栈的容量最小是()
练习本题 ›