首页 > 试题广场 >

Mysql(版本8.0.25)中表student_table

[单选题]
Mysql(版本8.0.25)中表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(t2.birth) as c1
from (
select * from student_table where sex = '男' ) t1 
full  join 
(select * from student_table where sex = '女') t2 
on t1.birth = t2.birth and t1.name = t2.name ; 
的结果行数是()?
  • 2
  • 3
  • 执行报错
  • 4
mysql不支持full join,应该用outer join
发表于 2021-12-13 14:54:25 回复(10)
是不是Mysql不支持fulljoin的原因?
发表于 2021-12-13 11:01:11 回复(1)

发表于 2022-04-07 11:06:46 回复(3)
1007中用了中文的“”
发表于 2022-03-09 16:03:44 回复(1)
等待大神解答,为啥报错?
发表于 2021-12-12 14:32:32 回复(2)
mysql没有full join这个语法,但是可以通过其他的方式来实现并集查询;
SELECT *
FROM table1
LEFT JOIN table2 ON table1.id = table2.id
UNION
SELECT *
FROM table1
RIGHT JOIN table2 ON table1.id = table2.id
WHERE table1.id IS NULL;


发表于 2023-06-01 09:57:09 回复(0)
这都什么题啊,在那一通算,最后告诉我是版本问题?
发表于 2022-11-29 09:52:44 回复(0)
MySQL不支持full join
发表于 2022-01-12 00:28:58 回复(0)
如果支持fulljoin的话,这题答案为什么会是三
发表于 2023-11-26 19:32:20 回复(0)
我之前有一天一模一样的,选3,现在难道多出来了开头的版本不同?
发表于 2022-11-18 10:34:39 回复(0)
mysql支持三种join ,inner/right/left join
发表于 2022-07-14 16:40:12 回复(0)
mysql不支持full join
编辑于 2024-02-25 03:31:43 回复(0)
王五的‘’是中文格式
发表于 2023-09-16 00:31:12 回复(0)
Mysql(版本8.0.25)不支持full join,执行报错
发表于 2022-09-06 10:02:24 回复(0)
MySQL 不支持 full join
发表于 2022-09-03 22:25:37 回复(0)
好家伙,给我挖坑呢!
发表于 2022-07-20 11:18:18 回复(0)
MySQL(8.0.25)不支持full join
发表于 2022-04-22 20:20:03 回复(0)