- How do I SELECT all columns except one column in SQL Server?
- How do I exclude a column in SQL SELECT?
How do I SELECT all columns except one column in SQL Server?
There is no formal way to select all but one column in a select statement. You will need to specify each column you want. You could possibly create a temporary table with all your columns using SELECT * INTO #temp_table FROM MyTable WHERE… Now, run an ALTER TABLE #temp_table DROP COLUMN <column name>.
How do I exclude a column in SQL SELECT?
A MySQL SELECT statement is used to retrieve data from a MySQL table. To exclude certain column(s) from the SELECT statement result, you can omit the column/ field name from the query.