I have a SQL query SELECT * FROM table WHERE column LIKE '%pdd%'.
The problem is I need to get all results excluding those which start with “pdd”, by which I mean find everything where “pdd” is not at the beginning. How could it be done?
I do need to match “pdd” when it is not at the beginning of the column.
I assume you mean all rows that match “pdd” except those where “pdd” is at the beginning.
The “
_” wildcard inLIKEpredicates means “one of any character,” equivalent to “.” in regular expressions.