SELECT * FROM pages WHERE some_col NOT LIKE './%';
This will fetch all rows where some_col is not starting with ./
./
Use LIKE in mysql to check that it is not starting with ./. Use the code below
LIKE
SELECT * FROM pages WHERE col_name NOT LIKE './%';
Hope this helps you
select * from pages where my_url NOT LIKE './%';