插入新列以 SQL 查询数据 table in Excel

Insert new columns to SQL query data table in Excel

我在 Excel table 中有一个简单的查询,用于从我们的 SQL 数据库中提取各种数据。我尝试为每行数据插入两个新列以输入新信息(右键单击 header -> 插入 )(请参见下面的屏幕截图)。

但是,每次我 "Refresh All" 数据时,新插入的列(I 和 J)中的值随机移动到不同的行。

请告知是否有解决此问题或其他解决方法的方法。

谢谢

在 excel 的“数据”选项卡中,在 'Queries and Connections' 下。单击属性。在打开的 window 中,确保您 select 'Overwrite existing cells with new data' 而不是 'Insert cells for new data'。那解决了我的问题。