How effective is doxycycline ?

I’ve been to the doc and was tested for UTI and possible std. I won’t get my results back from my std test but my doc prescribed doxycycline just to be safe instead of waiting until the next business day to know if I do or not. Anyone been on this med b4?