Se ho ben capito

codice:
select * from tabella where 
locate("<a href",campo) and locate("target",campo) = 0