Microsoft
Software
Hardware
Network
Question : SQL Best way to delete multiple records from a database
If I have a table that has a million records. And I also have a text file list of one field in those records that is unique. Lets call it ID. What is the best SQL statement to do a delete for those records? Do I have to make a second lookup table or can i simple do something like:
DELETE FROM table_name
WHERE ID = {value1, value11, value34, value39}
the values are not consequtive so wondering if i can just paste all the values in the where statement or not nad what the connotation would be.
Answer : SQL Best way to delete multiple records from a database
DELETE FROM table_name
WHERE ID = in (value1, value11, value34, value39)
Random Solutions
Vista Home Premium wont install
Excel dependable Dropdowns
VS2008 C# DeskTop application Close form and open anther one problem
SQL Server 2005 Error, Ex_handle_except encountered exception C0000005 - Server terminating
Programmatically create IIS host header using VBScript / ASP?
MS Word 2007 :: Tables :: Prevent Page Break
Programatically create multiple paragraph to a Excel Cell
New Line in EditBox
Forms: Conditional Formatting (when field Is Not Null) on Tab Stop
IE7 : 403 error