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
sql query help
Should I use .NET Visual, ASP.NET, Silverlight, WCF and what database?
Calculated control error in Microsoft Access 2007 report
Set number of Clients in WSUS ? 2
Validate bound field
SharePoint custom Dispform.aspx not showing some column data
Access Report- field value is null label does not show
smart drive cannot loaded becouse the xms driver ,himem.sys is not loaded ???
How do I run gacutil to restore System.EnterpriseServices.<wbr />dll?
Forgot sa password for MS SQL 2000