社区
MS-SQL Server
帖子详情
现有两个数据表:A(stu_id,name),B(id,stu_id),求A表中的stu_id不在B中的stu_id.求此SQL语句
zhangqy
2003-10-15 04:20:54
现有两个数据表:A(stu_id,name),B(id,stu_id),求A表中的stu_id没在B中的出现的stu_id.求此SQL语句
...全文
282
6
打赏
收藏
现有两个数据表:A(stu_id,name),B(id,stu_id),求A表中的stu_id不在B中的stu_id.求此SQL语句
现有两个数据表:A(stu_id,name),B(id,stu_id),求A表中的stu_id没在B中的出现的stu_id.求此SQL语句
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zhangqy
2003-10-15
打赏
举报
回复
谢谢!
workhand
2003-10-15
打赏
举报
回复
select stu_id from A where stu_id not in (select distinct stu_id from B)
pengdali
2003-10-15
打赏
举报
回复
打个补丁:
select * form A where stu_id not in (select stu_id from B where stu_id is not null)
gmlxf
2003-10-15
打赏
举报
回复
select stu_id from A where stu_id not in (select stu_id from B)
pengdali
2003-10-15
打赏
举报
回复
select * form A where stu_id not in (select stu_id from B)
longji
2003-10-15
打赏
举报
回复
select stu_id from A where a.stu_id not in (select stu_id from B)
MySQL在多表上创建视图
MySQL
中
,在
两个
或者以上的基本表上创建视图在
stu
dent表和
stu
_info表上,创建
stu
_class视图,查询出s_
id
号、姓名和班级 首先,创建
stu
_info表,并向
表
中
插入数据查看
表
中
的数据创建
stu
_class视图查看视图可以看出,...
错误代码: 1052 Column '
stu
_
id
' in field list is ambiguous
1、错误描述 1 queries executed, 0 success, 1 errors, 0 ...查询:select
stu
_
id
, (SELECT
stu
_name FROM t_
stu
dent_info t WHERE t_
stu
dent_info.
stu
_
id
= t.
stu
_
id
)
stu
_name from t_
stu
dent_info t, t_... 错误代
数据库原理与应用 实验三:表数据操作
sql语句
INSERT INTO
stu
_info(
stu
_
id
,name,sex,birthday,address,mark,major,sdept) VALUES('2007070101','张元','男','1985-10-09','河南郑州',580,'计算机科学与技术','信息学院') INSERT INTO
stu
_info(
stu
_
C++之智能指针std::shared_ptr简单使用和理解
通过一个指向堆上申请的空间的指针初始化(切记不要用栈上的指针,否则,当智能指针全部释放控制权(栈
中
的对象离开作用域本身就会析构一次),将会析构对象,导致出错) 比如如下 int a = new int(100); std::...
出现Field '
stu
_
id
' doesn't have a default value的解决办法
我的项目是SSH2,最近在插入数据到数据库的时候出现错误:Field '
stu
_
id
' doesn't have a default value at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert...54) at org.h
MS-SQL Server
34,576
社区成员
254,586
社区内容
发帖
与我相关
我的任务
MS-SQL Server
MS-SQL Server相关内容讨论专区
复制链接
扫一扫
分享
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章