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
Linked tables and Sql Server Password
How to edit a column in a list box control and update back to the Table in Access.
MS Access add image to form at runtime
Find last time a stored procedure was used
is there a way to set the defaults of a pivot table?
Access VB for combo box
Replace SBS Server 2003 SATA RAID hard drives with bigger ones
Check if there is a specific message for an event in the message queue in VB.NET
cannot delete shared calendar items in OWA exchange 2007
How to open pdf in a new browser without save option