How to delete a certain row from mysql table with same column values?

前端 未结 6 908
庸人自扰
庸人自扰 2020-12-07 10:37

I have a problem with my queries in MySQL. My table has 4 columns and it looks something like this:

id_users    id_product    quantity    date
 1                     


        
6条回答
  •  伪装坚强ぢ
    2020-12-07 11:01

    Add a limit to the delete query

    delete from orders 
    where id_users = 1 and id_product = 2
    limit 1
    

提交回复
热议问题