我们如何在不使用插入子句的情况下插入数据?
答案 0 :(得分:0)
是的,您可以:
SELECT * INTO FROM
OUTPUT DELETED. * INTO/ OUTPUT INSERTED. * INTO
OPENROWSET
可能还有其他人会找到的方法:)
答案 1 :(得分:0)
不知道您到底想要什么,但这可以做到:
INTO newtable
FROM oldtable
WHERE condition;
OR you can also do:
SELECT * INTO newtable FROM (
SELECT top 100 * FROM oldtable1
UNION All
SELECT top 100 * FROM oldtable2
UNION All
SELECT top 100 *
FROM oldtable3
UNION All
SELECT top 100 *
FROM oldtable4
) as tmp```