not like

    Perform fuzzy matching on the string str, return false if it matches, and return true if it doesn’t match.

    the percent sign (‘%’) represents zero, one, or more characters.

    1. // table test
    2. +-------+
    3. | k1 |
    4. +-------+
    5. | b |
    6. | bb |
    7. | a |
    8. // Return data that does not contain a in the k1 string
    9. mysql> select k1 from test where k1 not like '%a%';
    10. +-------+
    11. | k1 |
    12. +-------+
    13. | b |
    14. | bb |
    15. // Return the data that is not equal to a in the k1 string
    16. mysql> select k1 from test where k1 not like 'a';
    17. +-------+
    18. | k1 |
    19. +-------+
    20. | b |
    21. | bb |
    22. +-------+

    LIKE, NOT, NOT LIKE