I wrote the following query:
SELECT * from TABLENAME WHERE COLUMNNAME NOT LIKE (\'%%%\');
Assume that the table has only one column. The prob