LIKE 'bla%'
PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
From: pgsql-bugs@postgresql.org
To: pgsql-bugs@postgresql.org
Date: 2000-09-02T09:18:18Z
Lists: pgsql-bugs
Henrik Steffen (steffen@city-map.de) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description LIKE 'bla%' Long Description I just wanted to delete a record from a table, using DELETE FROM MYTABLE WHERE NAME LIKE 'Ant%'; knowing that there existed only one record with 'Anton' as name. However, the code above delivered 'DELETE 0' Then I did this: DELETE FROM MYTABLE WHERE NAME LIKE 'Anto%'; which gave 'DELETE 1' Isn't this strange? Sample Code DELETE FROM MYTABLE WHERE NAME LIKE 'Ant%'; <=> DELETE FROM MYTABLE WHERE NAME LIKE 'Anto%'; No file was uploaded with this report