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
DELETE FROM table WHERE edit_user="";
but I got the error
LINE 1: delete from table where edit_user="";
Also, I thought in the column as a blank value could be 0000-00-00, but there isn't.
How I should execute this command correctly?
Go to Home tab -> Delete. Select Delete Sheet Rows. The blank rows will be deleted.
To delete multiple rows into your worksheet, select the rows you wish to delete by clicking on the row header and dragging down to the header of the last row you wish to delete. Right-click on the row header and select Delete. In the Ribbon, select Home > Cells > Delete > Delete Sheet Rows.
DELETE FROM table WHERE edit_user IS NULL;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With