I have this table:
I want to delete the entire entry for NULL. I tried this, but it didn't work:
How can it be done?
Also, I don't think saying "deleting an entire entry of data" is correct. Is what I am asking to do is to delete a primary key?
+------+---------------+------------+
| id | primarycolour | pricerange |
+------+---------------+------------+
| 1 | black | 1 |
| NULL | brown | 2 |
+------+---------------+------------+
| id | primarycolour | pricerange |
+------+---------------+------------+
| 1 | black | 1 |
| NULL | brown | 2 |
+------+---------------+------------+
Code:
delete from testdb.products where id='NULL';
Also, I don't think saying "deleting an entire entry of data" is correct. Is what I am asking to do is to delete a primary key?
Comment