delete using where and or

前端 未结 4 557
自闭症患者
自闭症患者 2020-12-04 01:11

I have a database table [id,first,second,third] with a lot of entries and I would like to delete all the entries when [first,second,third] are empt

4条回答
  •  猫巷女王i
    2020-12-04 01:56

    Remove the star

    $sql= "delete from mytable where first='' or second='' or third=''";
    

    You don't need that with the delete statement

提交回复
热议问题