How do I delete blank rows in Mysql?

前端 未结 5 1115
忘了有多久
忘了有多久 2021-02-07 18:30

I do have a table with more than 100000 data elements, but there are almost 350 blank rows within. How do I delete this blank rows using phpmyadmin? Manually deleting is a tedio

5条回答
  •  死守一世寂寞
    2021-02-07 18:49

    I am doing the mysql operation in command prompt in windows. And the basic queries:

    delete * from table_name where column=''
    

    and

    delete * from table_name where column='NULL'
    

    doesn't work. I don't know whether it works in phpmyadmin sqlcommand builder. Anyway:

    delete * from table_name where column is NULL 
    

    works fine.

提交回复
热议问题