About 235,000 results
Open links in new tab
  1. sql - delete all from table - Stack Overflow

    This doesn't delete the table, it deletes all the rows from the tables and allows you to then continue to use the table unaffected. This is perfect for me, thanks.

  2. sql - DELETE ... FROM ... WHERE ... IN - Stack Overflow

    Apr 16, 2015 · i'm looking for a way to delete records in table 1 with matching combinations in table 2 on 'stn' and 'jaar'. The contents of column 'jaar' in table2 is formatted in a previous …

  3. How to write a SQL DELETE statement with a SELECT statement in …

    Jul 9, 2013 · Just be sure to put the table name (or an alias) between DELETE and FROM to specify which table you are deleting from. This is simpler than using a nested SELECT …

  4. How to Delete Large Amounts of Data in Microsoft SQL Server

    Mar 4, 2023 · Deleting large volumes of data in Microsoft SQL Server can be a challenging task. If not done correctly, it can lead to performance issues, excessive log growth, and even system …

  5. How can I delete using INNER JOIN with SQL Server?

    Sep 10, 2016 · I want to delete using INNER JOIN in SQL Server 2008. But I get this error: Msg 156, Level 15, State 1, Line 15 Incorrect syntax near the keyword 'INNER'. My code: DELETE …

  6. Removing the remembered login and password list in SQL Server ...

    Along with deleting the server name it will also delete all cached logins for that server name; you can't delete just a single login and leave the others for that server.

  7. Difference between DELETE and DELETE FROM in SQL?

    Mar 12, 2014 · Assuming this is T-SQL or MS SQL Server, there is no difference and the statements are identical. The first FROM keyword is syntactically optional in a DELETE …

  8. Sql server DELETE and WITH clause - Stack Overflow

    I need to build an SQL statement to delete from certain table the records that match another select statement. In Teradata we use delete from table1 where (col1, col2) in ( select col1,col2 ...

  9. sql - Delete duplicate rows keeping the first row - Stack Overflow

    10 To delete the duplicate rows from the table in SQL Server, you follow these steps: Find duplicate rows using GROUP BY clause or ROW_NUMBER () function. Use DELETE …

  10. How do I use cascade delete with SQL Server? - Stack Overflow

    To add "Cascade delete" to an existing foreign key in SQL Server Management Studio: First, select your Foreign Key, and open its "DROP And CREATE To.." in a new Query window. …