📜  使用 OpenQuery 插入 INTO 表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:13.235000             🧑  作者: Mango

代码示例1
TRUNCATE TABLE mytable

INSERT INTO mytable (firstcolumn, secondcolumn)
SELECT firstcolumn, secondcolumn 
FROM OPENQUERY (mylinkedserver, 'SELECT firstcolumn, secondcolumn FROM linkedtable')