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
1.4m articles
1.4m replys
5 comments
57.0k users