Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 test数据库下创建表 abc。我在 test1 下创建 bcd 表。bcd,abc 表字段相同。abc 表有数据。现在,如何将 abc 表值复制到 sql server 2005 中的 bcd 表?
利用INSERT INTO...SELECT
INSERT INTO...SELECT
INSERT INTO test1.dbo.bcd(col1, col2, col3) SELECT col1, col2, col3 FROM test.dbo.abc
这样做: SELECT * INTO DestinationDB..MyDestinationTable FROM SourceDB..MySourceTable