"Generally," Jail is considered temporary holding, as opposed to prison that is where a convicted person serves their sentence. There are instances where one can be convicted and ordered to serve their sentence in Jail (these are usually the lesser crimes/sentences).
In either event, Jail is where a person is held until they have an opportunity to have their case tried or agree to a plea bargain, at which point, they are sentenced to prison.
In short, Jail is short terms whereas Prison is long term.
I am not being compensated for this posting and I am not giving advice as your attorney. I am not your attorney and no attorney-client relationship has been formed by my posting on this site. This posting is for the benefit of the general public and not you alone.