Hello, How can I search within a MySQL table for results ending in anything except ".jpg"? Thanks.
SELECT * FROM mytable WHERE myfield NOT RLIKE '\\.jpg$'
You don't need to involve regular expressions, you can just do:
SELECT my_fields FROM my_table WHERE my_field NOT LIKE '%.jpg'