我把一个表的前面10000条记录导到另外一个表里,怎么写啊, 谢谢!! insert 表1 select top 10000 * from 表2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select top 10000 * from table1into table2orinsert into table2select top 10000 * from table1 insert 表1 (列1,列2) select top 10000 (列1,列2) from 表2 where 你的条件 insert into table1select top 10000 * from table2 --sorry,第一种应该是SELECT top 10000 *INTO table2FROM table1--这种情况创建一个新表table2 --table2已经存在select top 10000 * into table2 from table1--table2为新表insert into table2select top 10000 * from table1 SELECT TOP 10000INTO table2from table1where 条件 对不起,刚才犯了个小错误,应该是这样SELECT TOP 10000 *INTO TABLE2FROM TABLE1WHERE 条件 select top ...这种写法是ms sql专用的吧? 你不用top的话可以用set rowcount 1000select * from table1 into table2 --table2 为新建表insert into table2 select * from table1 --table1已经存在,往里追加 两表查询,在线等 急~请教大侠如何得出截图形式的直接SQL报表. 在SQL2000中,如何一次附加超过十六个文件的库? 一个奇怪的问题?/肯定有人碰到过, sql server数据库远程登陆问题?? 请教一个数据查找的问题 2005为何不能在触发器中修改链接服务器中的数据 sql语句左连接,单字段多条件 数据库问题,如何解答? VB+SQL Server 事务问题(在线等候) 自动编号的记录,AddNew后,回读新加记录,得不到这个自动编号的字段值? 什么是正则表达式?有什么入门的书籍么?? 在一个存储过程中调用另一个存储过程,要得到他的默认返回值,怎么做到啊??
into table2orinsert into table2
select top 10000 * from table1
select top 10000 * from table2
SELECT top 10000 *
INTO table2
FROM table1
--这种情况创建一个新表table2
select top 10000 * into table2 from table1
--table2为新表
insert into table2
select top 10000 * from table1
INTO table2
from table1
where 条件
INTO TABLE2
FROM TABLE1
WHERE 条件
set rowcount 1000
select * from table1 into table2 --table2 为新建表
insert into table2 select * from table1 --table1已经存在,往里追加