I don't think I'd class the 'relationships' I've had as actual relationships, they were always on and off. But I guess, the longest would be six months.
Had one of 3 years but I broke it off... Been in my current relationship for 3+ years, so this is my longest one and I hope it'll last for a loooong time