Delete empty rows

前端 未结 4 1542
盖世英雄少女心
盖世英雄少女心 2021-02-01 17:45

I use PostgreSQL database and in one table I have the datetime column edit_user. Some rows are blank, and these rows I would like to delete.

I tried

4条回答
  •  别那么骄傲
    2021-02-01 17:59

    I believe that your problem is that you're checking for an empty string using double quotes instead of single quotes. Try just changing to:

    DELETE FROM table WHERE edit_user=''
    

提交回复
热议问题