Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,
Please tell the query to delete the first row from database where Product_Name="motherboard"
Posted

delete top (1) from TableName where Product_Name="motherboard"
 
Share this answer
 
Comments
Member 10578683 20-Aug-14 2:53am    
Thank You Very Much. I exactly want to do this.
Sanchayeeta 20-Aug-14 3:00am    
You welcome :)
Hello,

delete it related to id :(where the id is your table id and it should be auto increment)

where Product_Name="motherboard" order by id ASC limit 1
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900