I would like to know how to delete entire rows in a postgres table that contain a particular string in the title
column. So if the string is:
it is a sunny day
How can I issue a command in postgres to remove this row from the table completely. For example, the following row would be deleted:
12, I woke up and to my surprise it is a sunny day, 54645646,
Also, I would like it to ignore case as the string could be a mixture of capital and lower case letters (i.e. the case my vary throughout the table). Any help appreciated.
I've tried:
DELETE FROM mytable where title like 'it is a sunny day'
But no records were updated despite the fact that I know there are a number of lines with this string in.