About 144,000 results
Open links in new tab
  1. sql - Exclude a column using SELECT * [except columnA] FROM …

    146 A modern SQL dialect used by BigQuery, Databricks, or Snowflake proposes an excellent solution. SELECT * EXCEPT(ColumnNameX, [ColumnNameY, ...]) FROM TableA This very …

  2. sql - SELECT * EXCEPT - Stack Overflow

    EDIT 2: REGEX Column Specification A SELECT statement can take regex-based column specification in Hive releases prior to 0.13.0, or in 0.13.0 and later releases if the configuration …

  3. sql - EXCEPT keyword in Oracle - Stack Overflow

    36 Oracle MINUS is an operator; it's equivalent to EXCEPT in SQL Server. Here is a previous post explaining the difference. Here's a trivial example:

  4. When to use EXCEPT as opposed to NOT EXISTS in Transact SQL?

    Mar 25, 2014 · EXCEPT compares all (paired)columns of two full-selects. NOT EXISTS compares two or more tables accoding to the conditions specified in WHERE clause in the sub-query …

  5. Trying to understand "except all" in sql query - Stack Overflow

    Feb 10, 2015 · The SQL EXCEPT operator takes the distinct rows of one query and returns the rows that do not appear in a second result set. The EXCEPT ALL operator does not remove …

  6. Select all columns except one in MySQL? - Stack Overflow

    I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this? EDIT: There are 53 columns in this table (NOT MY …

  7. sql - Select all the columns of a table except one column ... - Stack ...

    Sep 8, 2017 · How to select all the columns of a table except one column? I have nearly 259 columns and I can't mention all 258 columns in the SELECT statement. Is there any other way …

  8. Using the EXCEPT function in SQL Server - Stack Overflow

    May 20, 2025 · 0 I'm trying to subtract the value of one query from another using EXCEPT in SQL Server and cannot get the calculation to work. When I run the query it returns the value from …

  9. SQL query: Delete all records from the table except latest N?

    Is it possible to build a single mysql query (without variables) to remove all records from the table, except latest N (sorted by id desc)? Something like this, only it doesn't work :) delete from

  10. sql - How to use DELETE with EXCEPT clause? - Stack Overflow

    Mar 29, 2019 · If you want to modify the Delete statement, you need to follow it with a Where, Join, etc. For some alternative methods to get the result you want, see the excellent answers …