select id=identity(int,1,1),* into #t1 from 表一
select id=identity(int,1,1),* into #t2 from 表二select a.字段1,a.字段2,b.字段3,b.字段4
into 表三
from #t1 a full join #t2 b on a.id=b.id
drop table #t1,#t2
select id=identity(int,1,1),* into #t2 from 表二select a.字段1,a.字段2,b.字段3,b.字段4
into 表三
from #t1 a full join #t2 b on a.id=b.id
drop table #t1,#t2
解决方案 »
- 求助。。。。。。。。。。。。。。。。。。。。。。。。
- 请问如何在PHPADMIN中查询该数据库的用户名
- 在存储过程中,如何把SELECT * FROM 表 的 返回结果 放入 临时表中
- 【ACCESS】 如何在插入一条记录之后,把这个记录的ID给返回了?
- group by 解决不了的问题,请求教
- 急!!执行Delete命令删除后的数据怎么恢复??
- mssql错误:通过更新改变了字段但是原先内容又存在,但数据库中实际上没有,怎么解决呢?
- 【挑战◎探讨】数据库连接超级怪问题(DELPHI开发)
- 通过ADO访问SQL SERVER 2000出错:
- SQL Server 2008R2 安装service pack 2的问题
- 在SQL查询中,如何在结果集中,计算一条记录具体重复多少次?
- 数据恢复不了???????????救命救命在线等分数全给!!!
这是调试给我的错误
服务器: 消息 8108,级别 16,状态 1,行 1
无法使用 SELECT INTO 语句向表 '#t1' 中添加标识列,该表中已有继承了标识属性的列 'id'。
select id=identity(int,1,1),字段3,字段4 into #t2 from 表二select a.字段1,a.字段2,b.字段3,b.字段4
into 表三
from #t1 a full join #t2 b on a.id=b.id
drop table #t1,#t2