select identity(int,1,1) id,* into #a from (select a,b from table1 union all select a,b from table2) tem
select * from #a
select * from #a
解决方案 »
- 这个sql什么意思 为什么还可以这样写
- Microsoft SQL Server,错误: 10054
- PL/SQL触发器执行删除的问题
- create table 成绩2 as select * from 成绩, 这个语句应该如何改写呢?
- 远程连接,telnet数据库端口能打开,程序连接无反应
- 小白请教个问题,IS NULL和IS NOT NULL
- 在select语句的where条件中怎么设置检索字段值为NULL,如field=null好像不行
- 一条SQL语句 大家帮我看看哪里错了
- xp下使用sql2000的问题
- 有关数据库密码修改的问题,请各位大虾给小弟一个方案
- 今天我用SQL查询器它说:[Microsoft][ODBC SQL Server Driver]无效的属性/选项标识符
- 连接数据库的奇怪问题
create table3 (ID int identity not Null,a int ,b datetime)
insert into table3 select * from table1 union all select * from table2