How to select all the columns of a table except one column?
I have nearly 259 columns I cant mention 258 columns in SELECT statement.
SELECT
Is there any other way to do it?
You can use this approach to get the data from all the columns except one:-
Something like this:
SELECT * INTO #TemporaryTable FROM YourTableName ALTER TABLE #TemporaryTable DROP COLUMN Columnwhichyouwanttoremove SELECT * FROM #TemporaryTable DROP TABLE #TemporaryTable
2.1m questions
2.1m answers
60 comments
57.0k users