求一个简单sql,自己不会写,在线等 有2个表结构相同的表,而且记录相同,其中一个表记录不小心删了,求一个sql语句把这个记录找出来,谢谢大家,在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 一样的话就insert into table1 select * from table2其中table1是数据被删除的表,table2为数据未被删除的表 select *from Awhere ID not in(select ID from B) 假设B为被改动的表select * from A where A.[id] not in (select distinct [id] from B) 求个思路 sql server 2005 存储过程执行时间问题,求救!! 初学数据库,TSQL问题,我想在输出结果前加一行,不知道应该怎么做 帮我看看这个问题吧!都等了一天了! 可否在select 中作if判断? 菜单排序问题,求解 sql语句问题 求助:如何对一张表中的同个字段取两个汇总结果 请教一个T-SQL函数 oracle rdb谁用过?怎样将rdb中的数据倒出到sql server? xp_cmdshell被删除,怎么建立回来? marco08(天道酬勤) 兄进来一下啊
insert into table1 select * from table2其中table1是数据被删除的表,table2为数据未被删除的表
from A
where ID not in(select ID from B)
select * from A where A.[id] not in (select distinct [id] from B)