📌  相关文章
📜  选择除一个 sql 代码示例之外的所有列

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

代码示例1
/* Get the data into a temp table */
SELECT * INTO #TempTable
FROM YourTable
/* Drop the columns that are not needed */
ALTER TABLE #TempTable
DROP COLUMN ColumnToDrop
/* Get results and drop temp table */
SELECT * FROM #TempTable
DROP TABLE #TempTable