I have got a table(newsImages) with columns newsID(Foreign Key) , newsImage , imageID(primary Key), What my query is Select newsImage From newsImages Where newsID = 'something'
The query returns all the images with specific newsID, What I want is to remove a row who has image named”something” from the resultant query. Any help or suggestion will be appreciated
You would do
But be careful, it looks as though your ID field is a text field.
Are you sure that the ID field is guaranteed to be unique? Is it defined as a Primary Key? If not you may have several rows with the same ID and you may delete more than you were expecting to.
EDIT
Ah, ok