» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2006, 03:27 PM
gabriel gabriel is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gabriel is on a distinguished road
Default delete by index number

hello
I have a form which has already processed a "SELECT * FROM Equip WHERE `ClientName` = 'CName'". I have a result set. I wnt to know if there is a way to delete from this result set certain indexes. Such as the first and third records in this set ? I am using MySQL with php. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 06-08-2006, 03:29 PM
savannah savannah is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
savannah is on a distinguished road
Default

gabriel
You would have to go through the records one by one, identifying which ones meet your criteria for deletion, and either execute a "DELETE FROM equip WHERE fld=123" for each one, or assemble a delete query as you go, and execute the query at the end, something like "DELETE FROM equip WHERE fld IN (123,456,789)".

its easy -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hash index support? Lea MySQL Forums 1 02-27-2007 09:08 AM
custom index cache shazyaz MySQL Forums 1 10-16-2006 05:14 AM
On Delete Cascade.....!!!!! ingo MySQL Forums 2 09-18-2006 08:21 AM
Welcome to consumer price index on OutSourcingPlans... osp Introductions 0 08-29-2006 03:55 PM
Mysql_affected_rows() isn't working on a delete query? zizu PHP Programming and Tips 1 08-26-2006 03:05 PM


All times are GMT. The time now is 08:15 PM.