dear masters... could you please help me how to delete more than 1 record in the same field example DELETE FROM `employee` WHERE emp_id = 6 and emp_id = 15 it doesnt work... whew... can you modify this sql delete statement of mine in order to work... thanks in advance...
If it needs to be either 12 or 15, use the or statement: DELETE FROM `employee` WHERE emp_id = 6 or emp_id = 15
Yep, the "AND" in your query is what killed you, exoskeleton. A unique identifying primary key cannot be one number AND another simultaneously. That's why it needed to be changed to "OR" as ssmm987 mentioned. I do prefer the "IN" operator for stuff like this, though.
thank you very much sir... this really works for me... to all who replied.. thank you very much masters...