Actually, NEITHER sentence is correct, as " achieve" is not followed by a preposition. Its pattern should be " achieve something", as in:
"I have achieved good results in the examination."
Perhaps you are confusing " achieve" with succeed " or " work" , as in :
"I have succeeded IN getting good results in the examination."
" I have worked to get good results in the examination."