Please read up on RLIKE in your database manual. Also, when posting, please specify which database you are using, as that will help in assisting you.
SELECT * FROM myTable WHERE fileName RLIKE 'B'
...will provide all rows where fieldName starts with a B.