if i have used someone elses apple id to download an app, will it erase when i update my phone on itunes?
The app will not be erased and you can use it. But as Tetsujin said, you cannot update the app to the latest version without your friend's app Apple Id.