champrock Posted August 6, 2008 Share Posted August 6, 2008 Hi Please see this code that I have created. I want to achieve the same result in one go rather than through three or four commands. http://pastebin.com/d43482aec Can anyone help me out with this? thanks a lot Link to comment https://forums.phpfreaks.com/topic/118454-a-small-help-can-i-do-this-in-a-single-query/ Share on other sites More sharing options...
Xurion Posted August 6, 2008 Share Posted August 6, 2008 You can delete records with multiple conditions: DELETE FROM table WHERE column='value' OR columnb='valueb' ... etc. Link to comment https://forums.phpfreaks.com/topic/118454-a-small-help-can-i-do-this-in-a-single-query/#findComment-609737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.